on<Result> abstract method

Result on<Result>(
  1. Result onFailure(
    1. F failure
    ),
  2. Result onSuccess(
    1. S success
    )
)

Implementation

Result on<Result>(
  Result Function(F failure) onFailure,
  Result Function(S success) onSuccess,
);