Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
null check instead of cast
  • Loading branch information
bparrishMines committed Jan 28, 2021
commit 7f696eaa08eb0016fccc7e2f6d9b67b9406d96fd
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ class MethodChannelSharedPreferencesStore
extends SharedPreferencesStorePlatform {
@override
Future<bool> remove(String key) async {
return await _kChannel.invokeMethod<bool>(
return (await _kChannel.invokeMethod<bool>(
'remove',
<String, dynamic>{'key': key},
) as bool;
))!;
}

@override
Future<bool> setValue(String valueType, String key, Object value) async {
return await _kChannel.invokeMethod<bool>(
return (await _kChannel.invokeMethod<bool>(
'set$valueType',
<String, dynamic>{'key': key, 'value': value},
) as bool;
))!;
}

@override
Future<bool> clear() async {
return await _kChannel.invokeMethod<bool>('clear') as bool;
return (await _kChannel.invokeMethod<bool>('clear'))!;
}

@override
Expand Down