Created
October 6, 2019 18:25
-
-
Save adityadroid/28d34cce95e5bee553f898d85b57b4c1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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