ClipBehavior
ClipBehavior
#
Bases: Enum
Different ways to clip content. See Clip from Flutter documentation for ClipBehavior examples.
ANTI_ALIAS = 'antiAlias'
#
Clip with anti-aliasing.
This mode has anti-aliased clipping edges, which reduces jagged edges when the clip shape itself has edges that are diagonal, curved, or otherwise not axis-aligned.
ANTI_ALIAS_WITH_SAVE_LAYER = 'antiAliasWithSaveLayer'
#
Clip with anti-aliasing and saveLayer immediately following the clip.
HARD_EDGE = 'hardEdge'
#
Clip, but do not apply anti-aliasing.
This mode enables clipping, but curves and non-axis-aligned straight lines will be jagged as no effort is made to anti-alias.
NONE = 'none'
#
No clip at all.
This is the default option for most widgets: if the content does not overflow the widget boundary, don't pay any performance cost for clipping.