Skip to content

Commit

Permalink
Migrate package to null-safety.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrowJojo committed Mar 10, 2021
1 parent 8b31fc4 commit 046eea4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,5 @@ packages:
source: hosted
version: "2.1.0"
sdks:
dart: ">=2.12.0-0.0 <3.0.0"
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0"
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});
}
}
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,5 @@ packages:
source: hosted
version: "2.1.0"
sdks:
dart: ">=2.12.0-0.0 <3.0.0"
dart: ">=2.12.0 <3.0.0"
flutter: ">=1.20.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ homepage: https://github.com/fasky-software/flutter_widgetkit
repository: https://github.com/fasky-software/flutter_widgetkit

environment:
sdk: ">=2.7.0 <3.0.0"
sdk: '>=2.12.0 <3.0.0'
flutter: ">=1.20.0 <2.0.0"

dependencies:
Expand Down

0 comments on commit 046eea4

Please sign in to comment.