when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult create(
    1. Create data
    ),
  2. required TResult update(
    1. Update data
    ),
  3. required TResult delete(
    1. Delete data
    ),
  4. required TResult unknown(
    1. Map<String, dynamic> data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(Create data) create,
  required TResult Function(Update data) update,
  required TResult Function(Delete data) delete,
  required TResult Function(Map<String, dynamic> data) unknown,
}) =>
    throw _privateConstructorUsedError;