Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Prev Previous commit
Next Next commit
not necessary to use ?
  • Loading branch information
bparrishMines committed Dec 30, 2020
commit 95cb22993ea682fd910777debb56576e4ed65509
2 changes: 1 addition & 1 deletion packages/ios_platform_images/lib/ios_platform_images.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ class IosPlatformImages {
///
/// See [https://developer.apple.com/documentation/foundation/nsbundle/1411540-urlforresource?language=objc]
static Future<String?> resolveURL(String name, [String? ext]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're doing breaking changes anyway, and optional positional elements are strongly discouraged, should we take the opportunity to make this {String? extension}?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

return _channel.invokeMethod<String?>('resolveURL', [name, ext]);
return _channel.invokeMethod<String>('resolveURL', [name, ext]);
}
}