Browse Source

Merge pull request #375 from Leptopoda/refactor/interface

neon, settings: use dart3 interface
pull/378/head
Nikolas Rimikis 1 year ago committed by GitHub
parent
commit
4b0b44293b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/neon/neon/lib/src/utils/storage.dart
  2. 2
      packages/settings/lib/src/storage/storage.dart

2
packages/neon/neon/lib/src/utils/storage.dart

@ -1,6 +1,6 @@
part of '../../neon.dart'; part of '../../neon.dart';
class AppStorage extends SettingsStorage { class AppStorage implements SettingsStorage {
AppStorage( AppStorage(
this._id, this._id,
this._sharedPreferences, this._sharedPreferences,

2
packages/settings/lib/src/storage/storage.dart

@ -1,6 +1,6 @@
part of '../../settings.dart'; part of '../../settings.dart';
abstract class SettingsStorage { abstract interface class SettingsStorage {
String? getString(final String key); String? getString(final String key);
Future setString(final String key, final String value); Future setString(final String key, final String value);

Loading…
Cancel
Save