when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult drawing(
    1. Sketch sketch,
    2. SketchLine? activeLine,
    3. ScribblePointerMode allowedPointersMode,
    4. List<int> activePointerIds,
    5. Point? pointerPosition,
    6. int selectedColor,
    7. double selectedWidth,
    8. double scaleFactor,
    9. double simplificationTolerance,
    ),
  2. required TResult erasing(
    1. Sketch sketch,
    2. ScribblePointerMode allowedPointersMode,
    3. List<int> activePointerIds,
    4. Point? pointerPosition,
    5. double selectedWidth,
    6. double scaleFactor,
    7. double simplificationTolerance,
    ),
})
inherited

Implementation

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