execute<T> method
T
execute<T>(
- T error(
- E
- T response(
- R
Implementation
T execute<T>(T Function(E) error, T Function(R) response) => switch (this) {
Error(:final value) => error(value),
Success(:final value) => response(value),
};