mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
17 lines
391 B
Dart
17 lines
391 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
abstract class EnumerableItem<T> {
|
|
const EnumerableItem({required this.title, required this.raw});
|
|
|
|
final T raw;
|
|
final String title;
|
|
|
|
@override
|
|
String toString() => title;
|
|
}
|
|
|
|
mixin Serializable<T> on EnumerableItem<T> {
|
|
static Serializable deserialize<T>({required T raw}) => throw Exception('Unimplemented');
|
|
T serialize() => raw;
|
|
}
|