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
revert example and use named parameters
  • Loading branch information
bparrishMines committed Feb 8, 2021
commit b6025ff401720f53509ffaa1d81755e348c292bd
4 changes: 2 additions & 2 deletions packages/ios_platform_images/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: 'none'
homepage: https://github.com/flutter/plugins/tree/master/packages/ios_platform_images/ios_platform_images

environment:
sdk: ">=2.12.0-0 <3.0.0"
sdk: ">=2.1.0 <3.0.0"

dependencies:
flutter:
Expand All @@ -19,7 +19,7 @@ dev_dependencies:
sdk: flutter
ios_platform_images:
path: ../
pedantic: ^1.10.0-nullsafety
pedantic: ^1.8.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down
4 changes: 2 additions & 2 deletions packages/ios_platform_images/lib/ios_platform_images.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class IosPlatformImages {
/// Returns null if the resource can't be found.
///
/// See [https://developer.apple.com/documentation/foundation/nsbundle/1411540-urlforresource?language=objc]
static Future<String?> resolveURL(String name, [String? ext]) {
return _channel.invokeMethod<String>('resolveURL', [name, ext]);
static Future<String?> resolveURL(String name, {String? extension}) {
return _channel.invokeMethod<String>('resolveURL', [name, extension]);
}
}