when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. String type,
    2. String data
    ), {
  2. required TResult arr(
    1. String type,
    2. List<String> data
    ),
  3. required TResult any(
    1. String type,
    2. dynamic data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>(
  TResult Function(@JsonKey(name: 'type') String type,
          @JsonKey(name: 'data') String data)
      $default, {
  required TResult Function(@JsonKey(name: 'type') String type,
          @JsonKey(name: 'data') List<String> data)
      arr,
  required TResult Function(@JsonKey(name: 'type') String type,
          @JsonKey(name: 'data') dynamic data)
      any,
}) =>
    throw _privateConstructorUsedError;