Skip to content

Instantly share code, notes, and snippets.

@Cheersupzoo
Created January 9, 2020 12:21
Show Gist options
  • Save Cheersupzoo/8328fbfe46179f7a10d2db8ab8b367e8 to your computer and use it in GitHub Desktop.
Save Cheersupzoo/8328fbfe46179f7a10d2db8ab8b367e8 to your computer and use it in GitHub Desktop.
import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart';
@immutable
abstract class IconlistEvent extends Equatable {
IconlistEvent([List props = const[]]) : super(props);
}
class LoadDefaultIcon extends IconlistEvent{
@override
String toString() => 'LoadDefaultIcon';
}
class AddIcon extends IconlistEvent{
@override
String toString() => 'AddIcon';
}
class RemoveIcon extends IconlistEvent{
final int removeIndex;
RemoveIcon(this.removeIndex);
@override
String toString() => 'RemoveIcon';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment