bind<U> method

  1. @override
U bind<U>({
  1. required U loading(),
  2. required U got(
    1. T
    ),
  3. U failure(
    1. E
    )?,
})
override

Implementation

@override
U bind<U>({
  required U Function() loading,
  required U Function(T) got,
  U Function(E)? failure,
}) => failure != null ? failure(error) : loading();