GroupOp class final
canvas.save() (saveLayer with opacity or blendMode), then
translate, scale, rotate (radians) and transform (a Matrix4's
16 numbers, column-major as Matrix4.storage), in that order, then
clipRect, clipRRect, clipPath; its ops; canvas.restore().
Constructors
-
GroupOp({String? id, Expr<
bool> ? when, Json extra = const {}, List<DrawOp> ops = const [], Expr<Vec> ? translate, Expr<Vec> ? scale, Expr<double> ? rotate, Expr<Vec> ? transform, Expr<Vec> ? clipRect, DrawRRect? clipRRect, String? clipPath, Expr<double> opacity = const Expr(1.0), BlendMode blendMode = BlendMode.srcOver}) -
const
Properties
- blendMode → BlendMode
-
final
- clipPath → String?
-
SVG path data; may hold
${...}.final -
clipRect
→ Expr<
Vec> ? -
final
- clipRRect → DrawRRect?
-
final
- extra → Json
-
Keys this version doesn't model.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
finalinherited
- op → String
-
The JSON
op.no setteroverride -
opacity
→ Expr<
double> -
0–1: below 1 the group is a layer drawn at this opacity.
final
-
ops
→ List<
DrawOp> -
final
-
rotate
→ Expr<
double> ? -
Radians, clockwise.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scale
→ Expr<
Vec> ? -
sx, or[sx, sy].final -
transform
→ Expr<
Vec> ? -
final
-
translate
→ Expr<
Vec> ? -
[dx, dy].final -
when
→ Expr<
bool> ? -
Drawn only while it holds (Flutter's
if (cond)); null: always.finalinherited
Methods
-
copyWith(
{String? id, Expr< bool> ? when, List<DrawOp> ? ops, Expr<Vec> ? translate, Expr<Vec> ? scale, Expr<double> ? rotate, Expr<Vec> ? transform, Expr<Vec> ? clipRect, DrawRRect? clipRRect, String? clipPath, Expr<double> ? opacity, BlendMode? blendMode}) → GroupOp -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited