execute abstract method

  1. @override
  2. @protected
Future<void> execute(
  1. Params params,
  2. CancelToken? cancelToken
)
override

Override this method to implement the use case logic.

  • Throw AppFailure subclasses for expected/recoverable errors
  • Any other exception will be wrapped in UnknownFailure
  • Periodically check cancelToken?.throwIfCancelled() for long operations

The returned value will be wrapped in Success.

Implementation

@override
@protected
Future<void> execute(Params params, CancelToken? cancelToken);