public class FlutterMutatorsStack.FlutterMutator extends Object
A mutator contains information of a single mutation operation that can be applied to a
PlatformView
. See io.flutter.embedding.engine.mutatorsstack.Mutator
for informations on Mutators.
Constructor and Description |
---|
FlutterMutator(Matrix matrix)
Initialize a transform mutator.
|
FlutterMutator(Path path)
Initialize a clip path mutator.
|
FlutterMutator(Rect rect)
Initialize a clip rect mutator.
|
FlutterMutator(Rect rect,
float[] radiis)
Initialize a clip rrect mutator.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
getMatrix()
Get the matrix of the mutator if the
getType() returns FlutterMutatorType.TRANSFORM. |
Path |
getPath()
Get the path of the mutator if the
getType() returns FlutterMutatorType.CLIP_PATH. |
Rect |
getRect()
Get the rect of the mutator if the
getType() returns FlutterMutatorType.CLIP_RECT. |
FlutterMutatorsStack.FlutterMutatorType |
getType()
Get the mutator type.
|
public FlutterMutator(Rect rect)
rect
- the rect to be clipped.public FlutterMutator(Rect rect, float[] radiis)
rect
- the rect of the rrectradiis
- the radiis of the rrect. Array of 8 values, 4 pairs of [X,Y]. This value cannot
be null.public FlutterMutator(Path path)
rect
- the path to be clipped.public FlutterMutator(Matrix matrix)
matrix
- the transform matrix to apply.public FlutterMutatorsStack.FlutterMutatorType getType()
public Rect getRect()
getType()
returns FlutterMutatorType.CLIP_RECT.public Path getPath()
getType()
returns FlutterMutatorType.CLIP_PATH.