1
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
- // Autogenerated from Pigeon (v21.1.0 ), do not edit directly.
4
+ // Autogenerated from Pigeon (v22.6.1 ), do not edit directly.
5
5
// See also: https://pub.dev/packages/pigeon
6
6
// ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers
7
7
@@ -20,6 +20,23 @@ PlatformException _createConnectionError(String channelName) {
20
20
21
21
class _PigeonCodec extends StandardMessageCodec {
22
22
const _PigeonCodec ();
23
+ @override
24
+ void writeValue (WriteBuffer buffer, Object ? value) {
25
+ if (value is int ) {
26
+ buffer.putUint8 (4 );
27
+ buffer.putInt64 (value);
28
+ } else {
29
+ super .writeValue (buffer, value);
30
+ }
31
+ }
32
+
33
+ @override
34
+ Object ? readValueOfType (int type, ReadBuffer buffer) {
35
+ switch (type) {
36
+ default :
37
+ return super .readValueOfType (type, buffer);
38
+ }
39
+ }
23
40
}
24
41
25
42
class UrlLauncherApi {
@@ -28,67 +45,67 @@ class UrlLauncherApi {
28
45
/// BinaryMessenger will be used which routes to the host platform.
29
46
UrlLauncherApi (
30
47
{BinaryMessenger ? binaryMessenger, String messageChannelSuffix = '' })
31
- : __pigeon_binaryMessenger = binaryMessenger,
32
- __pigeon_messageChannelSuffix =
48
+ : pigeonVar_binaryMessenger = binaryMessenger,
49
+ pigeonVar_messageChannelSuffix =
33
50
messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix ' : '' ;
34
- final BinaryMessenger ? __pigeon_binaryMessenger ;
51
+ final BinaryMessenger ? pigeonVar_binaryMessenger ;
35
52
36
53
static const MessageCodec <Object ?> pigeonChannelCodec = _PigeonCodec ();
37
54
38
- final String __pigeon_messageChannelSuffix ;
55
+ final String pigeonVar_messageChannelSuffix ;
39
56
40
57
/// Returns true if the URL can definitely be launched.
41
58
Future <bool > canLaunchUrl (String url) async {
42
- final String __pigeon_channelName =
43
- 'dev.flutter.pigeon.url_launcher_linux.UrlLauncherApi.canLaunchUrl$__pigeon_messageChannelSuffix ' ;
44
- final BasicMessageChannel <Object ?> __pigeon_channel =
59
+ final String pigeonVar_channelName =
60
+ 'dev.flutter.pigeon.url_launcher_linux.UrlLauncherApi.canLaunchUrl$pigeonVar_messageChannelSuffix ' ;
61
+ final BasicMessageChannel <Object ?> pigeonVar_channel =
45
62
BasicMessageChannel <Object ?>(
46
- __pigeon_channelName ,
63
+ pigeonVar_channelName ,
47
64
pigeonChannelCodec,
48
- binaryMessenger: __pigeon_binaryMessenger ,
65
+ binaryMessenger: pigeonVar_binaryMessenger ,
49
66
);
50
- final List <Object ?>? __pigeon_replyList =
51
- await __pigeon_channel .send (< Object ? > [url]) as List <Object ?>? ;
52
- if (__pigeon_replyList == null ) {
53
- throw _createConnectionError (__pigeon_channelName );
54
- } else if (__pigeon_replyList .length > 1 ) {
67
+ final List <Object ?>? pigeonVar_replyList =
68
+ await pigeonVar_channel .send (< Object ? > [url]) as List <Object ?>? ;
69
+ if (pigeonVar_replyList == null ) {
70
+ throw _createConnectionError (pigeonVar_channelName );
71
+ } else if (pigeonVar_replyList .length > 1 ) {
55
72
throw PlatformException (
56
- code: __pigeon_replyList [0 ]! as String ,
57
- message: __pigeon_replyList [1 ] as String ? ,
58
- details: __pigeon_replyList [2 ],
73
+ code: pigeonVar_replyList [0 ]! as String ,
74
+ message: pigeonVar_replyList [1 ] as String ? ,
75
+ details: pigeonVar_replyList [2 ],
59
76
);
60
- } else if (__pigeon_replyList [0 ] == null ) {
77
+ } else if (pigeonVar_replyList [0 ] == null ) {
61
78
throw PlatformException (
62
79
code: 'null-error' ,
63
80
message: 'Host platform returned null value for non-null return value.' ,
64
81
);
65
82
} else {
66
- return (__pigeon_replyList [0 ] as bool ? )! ;
83
+ return (pigeonVar_replyList [0 ] as bool ? )! ;
67
84
}
68
85
}
69
86
70
87
/// Opens the URL externally, returning an error string on failure.
71
88
Future <String ?> launchUrl (String url) async {
72
- final String __pigeon_channelName =
73
- 'dev.flutter.pigeon.url_launcher_linux.UrlLauncherApi.launchUrl$__pigeon_messageChannelSuffix ' ;
74
- final BasicMessageChannel <Object ?> __pigeon_channel =
89
+ final String pigeonVar_channelName =
90
+ 'dev.flutter.pigeon.url_launcher_linux.UrlLauncherApi.launchUrl$pigeonVar_messageChannelSuffix ' ;
91
+ final BasicMessageChannel <Object ?> pigeonVar_channel =
75
92
BasicMessageChannel <Object ?>(
76
- __pigeon_channelName ,
93
+ pigeonVar_channelName ,
77
94
pigeonChannelCodec,
78
- binaryMessenger: __pigeon_binaryMessenger ,
95
+ binaryMessenger: pigeonVar_binaryMessenger ,
79
96
);
80
- final List <Object ?>? __pigeon_replyList =
81
- await __pigeon_channel .send (< Object ? > [url]) as List <Object ?>? ;
82
- if (__pigeon_replyList == null ) {
83
- throw _createConnectionError (__pigeon_channelName );
84
- } else if (__pigeon_replyList .length > 1 ) {
97
+ final List <Object ?>? pigeonVar_replyList =
98
+ await pigeonVar_channel .send (< Object ? > [url]) as List <Object ?>? ;
99
+ if (pigeonVar_replyList == null ) {
100
+ throw _createConnectionError (pigeonVar_channelName );
101
+ } else if (pigeonVar_replyList .length > 1 ) {
85
102
throw PlatformException (
86
- code: __pigeon_replyList [0 ]! as String ,
87
- message: __pigeon_replyList [1 ] as String ? ,
88
- details: __pigeon_replyList [2 ],
103
+ code: pigeonVar_replyList [0 ]! as String ,
104
+ message: pigeonVar_replyList [1 ] as String ? ,
105
+ details: pigeonVar_replyList [2 ],
89
106
);
90
107
} else {
91
- return (__pigeon_replyList [0 ] as String ? );
108
+ return (pigeonVar_replyList [0 ] as String ? );
92
109
}
93
110
}
94
111
}
0 commit comments