whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? drawing(
- Sketch sketch,
- SketchLine? activeLine,
- ScribblePointerMode allowedPointersMode,
- List<
int> activePointerIds, - Point? pointerPosition,
- int selectedColor,
- double selectedWidth,
- double scaleFactor,
- double simplificationTolerance,
- TResult? erasing()?,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(
Sketch sketch,
SketchLine? activeLine,
ScribblePointerMode allowedPointersMode,
List<int> activePointerIds,
Point? pointerPosition,
int selectedColor,
double selectedWidth,
double scaleFactor,
double simplificationTolerance)?
drawing,
TResult? Function(
Sketch sketch,
ScribblePointerMode allowedPointersMode,
List<int> activePointerIds,
Point? pointerPosition,
double selectedWidth,
double scaleFactor,
double simplificationTolerance)?
erasing,
}) =>
throw _privateConstructorUsedError;