mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
* chore(packages): Added pedantic package to enforce linting and styling * feat(lunasea): Enforce effective dart styling * Comment and format colours class * Localize additional classes in Dashboard, cleanup additional code * chore(lunasea): Major refactor by running dartfmt on the entire codebase, added widget return for page routers * Additional work on conforming to effective dart style * fix(share_plus): Roll back share_plus package to 2.0.0 to support iOS 12 or lower * chore(lunasea): Fix remaining enabled analysis warnings
14 lines
410 B
Dart
14 lines
410 B
Dart
abstract class LunaModuleDatabase {
|
|
/// Register all adapters necessary for this module
|
|
void registerAdapters();
|
|
|
|
/// Export the current module's database into a [Map] object
|
|
Map<String, dynamic> export();
|
|
|
|
/// Receiving a map object, import a configuration
|
|
void import(Map<String, dynamic> config);
|
|
|
|
/// Return the Database enumerator value given the key
|
|
dynamic valueFromKey(String value);
|
|
}
|