Skip to content

Instantly share code, notes, and snippets.

@adityadroid
Created October 6, 2019 18:25
Show Gist options
  • Select an option

  • Save adityadroid/28d34cce95e5bee553f898d85b57b4c1 to your computer and use it in GitHub Desktop.

Select an option

Save adityadroid/28d34cce95e5bee553f898d85b57b4c1 to your computer and use it in GitHub Desktop.
import 'package:equatable/equatable.dart';
import 'package:flutter/material.dart';
import 'package:meta/meta.dart';
@immutable
abstract class ConfigState extends Equatable {
ConfigState([List props = const <dynamic>[]]) : super(props);
}
class ConfigChangeState extends ConfigState{
final String key;
final bool value;
ConfigChangeState(this.key,this.value): super([key,value]);
}
class UnConfigState extends ConfigState{}
class UpdatingProfilePictureState extends ConfigState{}
class ProfilePictureChangedState extends ConfigState{
final String profilePictureUrl;
ProfilePictureChangedState(this.profilePictureUrl):super([profilePictureUrl]);
@override
String toString()=> 'ProfilePictureChangedState {profilePictureUrl: $profilePictureUrl}';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment