diff --git a/flutter_google_places_sdk_platform_interface/lib/flutter_google_places_sdk_platform.dart b/flutter_google_places_sdk_platform_interface/lib/flutter_google_places_sdk_platform.dart index ff25de6..12b4bab 100644 --- a/flutter_google_places_sdk_platform_interface/lib/flutter_google_places_sdk_platform.dart +++ b/flutter_google_places_sdk_platform_interface/lib/flutter_google_places_sdk_platform.dart @@ -9,14 +9,14 @@ abstract class FlutterGooglePlacesSdkPlatform extends PlatformInterface { /// "Powered by google" image that should be used when background is white static const AssetImage ASSET_POWERED_BY_GOOGLE_ON_WHITE = AssetImage( - 'assets/google/powered_by_google_on_white.png', - package: 'flutter_google_places_sdk_platform_interface'); + 'assets/google/powered_by_google_on_white.png', + package: 'flutter_google_places_sdk_platform_interface'); /// "Powered by google" image that should be used when background is not white static const AssetImage ASSET_POWERED_BY_GOOGLE_ON_NON_WHITE = AssetImage( - 'assets/google/powered_by_google_on_non_white.png', - package: 'flutter_google_places_sdk_platform_interface'); + 'assets/google/powered_by_google_on_non_white.png', + package: 'flutter_google_places_sdk_platform_interface'); static final Object _token = Object(); diff --git a/flutter_google_places_sdk_platform_interface/lib/method_channel_flutter_google_places_sdk.dart b/flutter_google_places_sdk_platform_interface/lib/method_channel_flutter_google_places_sdk.dart index 4238244..92d5a75 100644 --- a/flutter_google_places_sdk_platform_interface/lib/method_channel_flutter_google_places_sdk.dart +++ b/flutter_google_places_sdk_platform_interface/lib/method_channel_flutter_google_places_sdk.dart @@ -9,7 +9,8 @@ const String _CHANNEL_NAME = 'plugins.msh.com/flutter_google_places_sdk'; const MethodChannel _channel = MethodChannel(_CHANNEL_NAME); /// An implementation of [FlutterGooglePlacesSdkPlatform] that uses method channels. -class FlutterGooglePlacesSdkMethodChannel extends FlutterGooglePlacesSdkPlatform { +class FlutterGooglePlacesSdkMethodChannel + extends FlutterGooglePlacesSdkPlatform { static const CHANNEL_NAME = _CHANNEL_NAME; @override @@ -107,7 +108,8 @@ class FlutterGooglePlacesSdkMethodChannel extends FlutterGooglePlacesSdkPlatform } FetchPlaceResponse _responseFromPlaceDetails(dynamic value) { - final place = value == null ? null : Place.fromJson(value.cast()); + final Place? place = + value == null ? null : Place.fromJson(value.cast()); return FetchPlaceResponse(place); } diff --git a/flutter_google_places_sdk_platform_interface/test/method_channel_flutter_google_places_sdk_test.dart b/flutter_google_places_sdk_platform_interface/test/method_channel_flutter_google_places_sdk_test.dart index 9a53a1e..f9cdf35 100644 --- a/flutter_google_places_sdk_platform_interface/test/method_channel_flutter_google_places_sdk_test.dart +++ b/flutter_google_places_sdk_platform_interface/test/method_channel_flutter_google_places_sdk_test.dart @@ -260,6 +260,8 @@ class FlutterGooglePlacesSdkPlatformMock extends Mock with MockPlatformInterfaceMixin implements FlutterGooglePlacesSdkPlatform {} -class ImplementsFlutterGooglePlacesSdkPlatform extends Mock implements FlutterGooglePlacesSdkPlatform {} +class ImplementsFlutterGooglePlacesSdkPlatform extends Mock + implements FlutterGooglePlacesSdkPlatform {} -class ExtendsFlutterGooglePlacesSdkPlatform extends FlutterGooglePlacesSdkPlatform {} +class ExtendsFlutterGooglePlacesSdkPlatform + extends FlutterGooglePlacesSdkPlatform {}