ErasedOffset class

Represents an erased area with a position (offset) and a circular radius.

This model is typically used for storing, serializing, and comparing erase operations in a drawing or editing context.

Constructors

ErasedOffset.new({required Offset offset, required double radius})
Creates an ErasedOffset with the given offset and radius.
const
ErasedOffset.fromMap(Map<String, dynamic> map)
Creates an ErasedOffset from a map.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
offset Offset
The position of the erased area.
final
radius double
The circular radius of the erased area.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap({int maxDecimalPlaces = kMaxSafeDecimalPlaces, bool enableMinify = false}) Map<String, dynamic>
Converts this ErasedOffset into a Map representation.
toString() String
A string representation of this object.
inherited

Operators

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