Stroke class abstract
Constructors
-
Stroke.new({required List<
Offset> points, Color color = Colors.black, double size = 1, double opacity = 1, StrokeType strokeType = StrokeType.normal}) -
Stroke.fromJson(Map<
String, dynamic> json) -
factory
Properties
- color → Color
-
final
- createdAt → DateTime
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEraser → bool
-
no setter
- isLine → bool
-
no setter
- isNormal → bool
-
no setter
- isStamp → bool
-
no setter
- opacity → double
-
final
-
points
→ List<
Offset> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
final
- strokeType → StrokeType
-
final
Methods
-
copyWith(
{List< Offset> ? points, Color? color, double? size, double? opacity}) → Stroke -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited