Skip to content

Commit

Permalink
Update to null safety
Browse files Browse the repository at this point in the history
  • Loading branch information
nohli committed Apr 8, 2021
1 parent 0ec15ab commit 5cbebe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flutter_dynamic_icon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class FlutterDynamicIcon {
/// Fetches the current iconName
///
/// Returns `null` if the current icon is the default icon
static Future<String> getAlternateIconName() async {
final String altIconName =
static Future<String?> getAlternateIconName() async {
final String? altIconName =
await _channel.invokeMethod('mGetAlternateIconName');
return altIconName;
}
Expand Down

0 comments on commit 5cbebe6

Please sign in to comment.