Skip to content

Commit

Permalink
Modify removeItem to return Future<bool>.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrowJojo committed Mar 16, 2021
1 parent 046eea4 commit e73fc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flutter_widgetkit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WidgetKit {
return await _channel.invokeMethod('setItem', <String, dynamic>{'key': key, 'value': value, 'appGroup': appGroup});
}

static Future<bool?> removeItem(String key, String appGroup) async {
static Future<bool> removeItem(String key, String appGroup) async {
return await _channel.invokeMethod('removeItem', <String, dynamic>{'key': key, 'appGroup': appGroup});
}
}

0 comments on commit e73fc01

Please sign in to comment.