20 lines
450 B
Dart
20 lines
450 B
Dart
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
||
|
|
|
||
|
|
part 'generated/widget.freezed.dart';
|
||
|
|
|
||
|
|
@freezed
|
||
|
|
class ActivateState with _$ActivateState {
|
||
|
|
const factory ActivateState({
|
||
|
|
required bool active,
|
||
|
|
}) = _ActivateState;
|
||
|
|
}
|
||
|
|
|
||
|
|
@freezed
|
||
|
|
class CommonMessage with _$CommonMessage {
|
||
|
|
const factory CommonMessage({
|
||
|
|
required String id,
|
||
|
|
required String text,
|
||
|
|
@Default(Duration(seconds: 3)) Duration duration,
|
||
|
|
}) = _CommonMessage;
|
||
|
|
}
|