Rumahjo-Android-APP/lib/data/cubits/property/fetch_property_cubit.dart

21 lines
590 B
Dart
Raw Permalink Normal View History

2024-09-07 00:58:50 +00:00
import 'package:flutter_bloc/flutter_bloc.dart';
abstract class FetchPropertyState {}
class FetchPropertyInitial extends FetchPropertyState {}
class FetchPropertyInProgress extends FetchPropertyState {}
class FetchPropertySuccess extends FetchPropertyState {}
class FetchPropertyFailure extends FetchPropertyState {
final String errorMessage;
FetchPropertyFailure(this.errorMessage);
}
class FetchPropertyCubit extends Cubit<FetchPropertyState> {
// final PropertyRepository _propertyRepository = PropertyRepository();
FetchPropertyCubit() : super(FetchPropertyInitial());
}