initial commit (migrated)
This commit is contained in:
commit
b594facb51
143 changed files with 11057 additions and 0 deletions
9
lib/core/domain/use_case.dart
Normal file
9
lib/core/domain/use_case.dart
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import 'package:fpdart/fpdart.dart';
|
||||
import 'package:kuwot/core/error/failure.dart';
|
||||
|
||||
/// [TReturnType] is the return type of a successful use case call.
|
||||
/// [TParams] are the parameters that are required to call the use case.
|
||||
abstract class UseCase<TReturnType, TParams> {
|
||||
/// Execute the use case
|
||||
Future<Either<Failure, TReturnType>> call(TParams params);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue