whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult transparent(
    1. Color color
    )?,
  2. TResult circle(
    1. Color color
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function(@ColorSerialiser() Color color)? transparent,
  TResult Function(@ColorSerialiser() Color color)? circle,
}) =>
    throw _privateConstructorUsedError;