Result<T> constructor

Result<T>({
  1. required T? data,
  2. required bool isSuccess,
  3. required bool isLoading,
  4. String? error,
})

Implementation

Result({
  required this.data,
  required this.isSuccess,
  required this.isLoading,
  this.error,
});