when<TResult extends Object?> method

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

Implementation

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