emit method

  1. @override
Future<AuthResponse<T>> emit(
  1. AuthResponse<T> data
)
override

Implementation

@override
Future<AuthResponse<T>> emit(AuthResponse<T> data) async {
  if (data.isLoading) {
    _notifyLoading(true);
  } else {
    _notifyLoading(false);
    _notifyError(data);
    _notifyMessage(data);
    _notifyState(data);
    _notifyUser(data.data);
  }
  return data;
}