import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';

@immutable
abstract class BodyParameterState extends Equatable {
  BodyParameterState([List props = const []]) : super();

  @override
  // TODO: implement props
  List<Object> get props => [];
}

class InitialBodyParameterState extends BodyParameterState {}

class BodyParameterLoading extends BodyParameterState {
  @override
  String toString() => 'BodyParameterLoading';
}

class BodyParameterSuccess extends BodyParameterState {
  @override
  String toString() {
    return 'BodyParameterSuccess';
  }
}

class BodyParameterFailure extends BodyParameterState {
  final String error;

  BodyParameterFailure(this.error);

  @override
  String toString() => 'BodyParameterFailure { error: $error }';
}


