mirrored_repositories/flutter_spacexopedia/lib/bloc
import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart';

import 'launch_model.dart';

@immutable
abstract class LaunchState extends Equatable {
   @override
  List<Object> get props => [];
}

class Loading extends LaunchState {}

class LoadedState extends LaunchState {
  final List<Launch> allLaunch;

  LoadedState(this.allLaunch);
  @override
  List<Object> get props => ["Total launch ${allLaunch.length}"];
}
class ErrorDragonState extends LaunchState {
  final String errorMessage;

  ErrorDragonState(this.errorMessage);

  @override
  String toString() => 'ErrorLaunchState';
}
class NoConnectionDragonState extends LaunchState {
  final String errorMessage;

  NoConnectionDragonState(this.errorMessage);

  @override
  String toString() => 'ErrorLaunchState';
}

