DrawOp class sealed

One draw operation: {"op": name, ...}. Every op may carry an id (editor selection, a binding path customPaint.painter.<id>.<field>) and when (false skips it). Keys an op doesn't know are kept in extra and written back.

Implementers
Annotations
  • @immutable

Properties

extra → Json
Keys this version doesn't model.
final
hashCode → int
The hash code for this object.
no setteroverride
id → String?
final
op → String
The JSON op.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
when → Expr<bool>?
Drawn only while it holds (Flutter's if (cond)); null: always.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Object? json) → DrawOp?
listFromJson(Object? json) → List<DrawOp>
opName(Object? v) → String?
v as an op name: one of names, also spelled as the Canvas method (drawRRect, drawImageRect) or text for paragraph. Null when v isn't text.

Constants

names → const Map<String, String>
The op names, each with what it is in Flutter.