when<TResult extends Object?> method

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

Implementation

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