whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. 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. 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? 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;