💄 Optimized fortune saying and dashboard clock
This commit is contained in:
16
lib/models/fortune.dart
Normal file
16
lib/models/fortune.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'fortune.g.dart';
|
||||
part 'fortune.freezed.dart';
|
||||
|
||||
@freezed
|
||||
sealed class SnFortuneSaying with _$SnFortuneSaying {
|
||||
const factory SnFortuneSaying({
|
||||
required String content,
|
||||
required String source,
|
||||
required String language,
|
||||
}) = _SnFortuneSaying;
|
||||
|
||||
factory SnFortuneSaying.fromJson(Map<String, dynamic> json) =>
|
||||
_$SnFortuneSayingFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user