maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult bool(
    1. bool field0
    )?,
  2. TResult string(
    1. String field0
    )?,
  3. TResult array(
    1. List<MyValue> field0
    )?,
  4. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(bool field0)? bool,
  TResult Function(String field0)? string,
  TResult Function(List<MyValue> field0)? array,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;