Stroke class final
One stroke of the history a segmentation request carries: its brush mode and its points, normalized to the input image.
- Annotations
Constructors
-
Stroke({required BrushMode brushMode, required List<
NormalizedKeypoint> points, bool isCompleted = true}) -
Owns an unmodifiable copy of
points, at least one in any mode, as Google's API takes them. A one-point lasso has no area.
Properties
- brushMode → BrushMode
-
Whether the stroke includes, excludes or encloses.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompleted → bool
-
False while the pointer is still down, true once it was released.
Include and Exclude strokes read the same either way; Google's CPU
graph reads an unfinished lasso differently from the finished one, so
send a lasso when the pointer lifts, as Google's samples do.
final
-
points
→ List<
NormalizedKeypoint> -
The stroke's points, from 0 to 1 across the image.
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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited