when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult createResult(
    1. CreateResult data
    ),
  2. required TResult updateResult(
    1. UpdateResult data
    ),
  3. required TResult deleteResult(
    1. DeleteResult data
    ),
  4. required TResult unknown(
    1. Map<String, dynamic> data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(CreateResult data) createResult,
  required TResult Function(UpdateResult data) updateResult,
  required TResult Function(DeleteResult data) deleteResult,
  required TResult Function(Map<String, dynamic> data) unknown,
}) =>
    throw _privateConstructorUsedError;