You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:dde_gesture_manager/models/scheme.dart';
|
|
|
|
|
|
|
|
export 'local_schemes_web.dart' if (dart.library.io) 'local_schemes_linux.dart';
|
|
|
|
|
|
|
|
abstract class LocalSchemeEntry {
|
|
|
|
Scheme scheme;
|
|
|
|
DateTime lastModifyTime;
|
|
|
|
String path;
|
|
|
|
|
|
|
|
LocalSchemeEntry({
|
|
|
|
required this.path,
|
|
|
|
required this.scheme,
|
|
|
|
required this.lastModifyTime,
|
|
|
|
});
|
|
|
|
|
|
|
|
LocalSchemeEntry.systemDefault()
|
|
|
|
: this.path = '',
|
|
|
|
this.scheme = Scheme.systemDefault(),
|
|
|
|
|
|
|
|
/// max value of DateTime 
|
|
|
|
this.lastModifyTime = DateTime.fromMillisecondsSinceEpoch(8640000000000000);
|
|
|
|
|
|
|
|
save();
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract class LocalSchemesInterface<T extends LocalSchemeEntry> {
|
|
|
|
Future<List<T>> get schemeEntries;
|
|
|
|
}
|