Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

null safety #36

Merged
merged 5 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: flutter_app_badger_example
description: Demonstrates how to use the flutter_app_badger plugin.

environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
flutter:
sdk: flutter
Expand Down
4 changes: 2 additions & 2 deletions lib/flutter_app_badger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class FlutterAppBadger {
}

static Future<bool> isAppBadgeSupported() async {
bool appBadgeSupported = await _channel.invokeMethod('isAppBadgeSupported');
return appBadgeSupported;
bool? appBadgeSupported = await _channel.invokeMethod('isAppBadgeSupported');
return appBadgeSupported ?? false;
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ flutter:
pluginClass: FlutterAppBadgerPlugin

environment:
sdk: ">=2.1.0 <3.0.0"
sdk: '>=2.12.0 <3.0.0'
flutter: ">=1.10.0 <2.0.0"