Skip to content

Commit

Permalink
Undo formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
flikkr committed Jul 25, 2024
1 parent 998528b commit 4dfc213
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -107,7 +108,8 @@ class FlutterGooglePlacesSdkMethodChannel extends FlutterGooglePlacesSdkPlatform
}

FetchPlaceResponse _responseFromPlaceDetails(dynamic value) {
final place = value == null ? null : Place.fromJson(value.cast<String, dynamic>());
final Place? place =
value == null ? null : Place.fromJson(value.cast<String, dynamic>());
return FetchPlaceResponse(place);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

0 comments on commit 4dfc213

Please sign in to comment.