nc-photos/app/lib/bloc_util.dart
2023-07-29 00:53:51 +08:00

13 lines
306 B
Dart

mixin BlocLogger {
String? get tag => null;
bool Function(dynamic currentState, dynamic nextState)? get shouldLog => null;
}
/// Wrap around a string such that two strings with the same value will fail
/// the identical check
class StateMessage {
StateMessage(this.value);
final String value;
}