GeographicBounds.pigeon_new constructor
GeographicBounds.pigeon_new({
- BinaryMessenger? pigeon_binaryMessenger,
- PigeonInstanceManager? pigeon_instanceManager,
- required double lowerLeftLatitude,
- required double lowerLeftLongitude,
- required double upperRightLatitude,
- required double upperRightLongitude,
Implementation
@protected
GeographicBounds.pigeon_new({
super.pigeon_binaryMessenger,
super.pigeon_instanceManager,
required this.lowerLeftLatitude,
required this.lowerLeftLongitude,
required this.upperRightLatitude,
required this.upperRightLongitude,
}) {
final int pigeonVar_instanceIdentifier =
pigeon_instanceManager.addDartCreatedInstance(this);
final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec =
_pigeonVar_codecGeographicBounds;
final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger;
const String pigeonVar_channelName =
'dev.flutter.pigeon.geocoding_android.GeographicBounds.pigeon_defaultConstructor';
final BasicMessageChannel<Object?> pigeonVar_channel =
BasicMessageChannel<Object?>(
pigeonVar_channelName,
pigeonChannelCodec,
binaryMessenger: pigeonVar_binaryMessenger,
);
final Future<Object?> pigeonVar_sendFuture =
pigeonVar_channel.send(<Object?>[
pigeonVar_instanceIdentifier,
lowerLeftLatitude,
lowerLeftLongitude,
upperRightLatitude,
upperRightLongitude
]);
() async {
final List<Object?>? pigeonVar_replyList =
await pigeonVar_sendFuture as List<Object?>?;
if (pigeonVar_replyList == null) {
throw _createConnectionError(pigeonVar_channelName);
} else if (pigeonVar_replyList.length > 1) {
throw PlatformException(
code: pigeonVar_replyList[0]! as String,
message: pigeonVar_replyList[1] as String?,
details: pigeonVar_replyList[2],
);
} else {
return;
}
}();
}