1
0
mirror of https://github.com/flutter/samples.git synced 2026-08-25 01:21:59 +00:00

Release 3.47 (#2879)

Minor updates for release 3.47

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [x] I have added sample code updates to the [changelog].
- [x] I updated/added relevant documentation (doc comments with `///`).


If you need help, consider asking for advice on the #hackers-devrel
channel on [Discord].

<!-- Links -->
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Style-guide-for-Flutter-repo.md
[CLA]: https://cla.developers.google.com/
[Discord]:
https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md
[Contributors Guide]:
https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
[changelog]: ../CHANGELOG.md

---------

Co-authored-by: Parker Lougheed <parlough@gmail.com>
This commit is contained in:
Eric Windmill
2026-08-12 12:21:23 -07:00
committed by GitHub
parent e0136e5ebb
commit 0c5ca75d29
96 changed files with 1711 additions and 723 deletions

View File

@@ -1,4 +1,11 @@
include: package:flutter_lints/flutter.yaml
include: ../analysis_options.yaml
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
exclude:
- build/**
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**

View File

@@ -1,29 +1 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
include: ../../analysis_options.yaml

View File

@@ -54,7 +54,7 @@ class _HomeState extends State<Home> {
super.initState();
}
void runPedometer() async {
Future<void> runPedometer() async {
final now = DateTime.now();
hourlySteps = await StepsRepo.instance.getSteps();
lastUpdated = now;

View File

@@ -90,7 +90,7 @@ class _IOSStepsRepo implements StepsRepo {
return [];
}
final handlers = [];
final handlers = <ffi.Finalizable>[];
final futures = <Future<Steps?>>[];
final now = DateTime.now();
@@ -102,8 +102,8 @@ class _IOSStepsRepo implements StepsRepo {
final handler = helpLib.wrapCallback(
pd.ObjCBlock_ffiVoid_CMPedometerData_NSError.listener(lib, (
pd.CMPedometerData? result,
pd.NSError? error,
result,
error,
) {
if (result != null) {
final stepCount = result.numberOfSteps.intValue;

View File

@@ -254,7 +254,8 @@ final class $HealthConnectClient$Companion$NullableType
@core$_.override
bool operator ==(Object other) {
return other.runtimeType == ($HealthConnectClient$Companion$NullableType) &&
return other.runtimeType ==
($HealthConnectClient$Companion$NullableType) &&
other is $HealthConnectClient$Companion$NullableType;
}
}
@@ -406,7 +407,9 @@ class HealthConnectClient extends jni$_.JObject {
jni$_.JList<jni$_.JObject?> list,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$list = list.reference;
_insertRecords(
reference.pointer,
@@ -459,7 +462,9 @@ class HealthConnectClient extends jni$_.JObject {
jni$_.JList<jni$_.JObject?> list,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$list = list.reference;
_updateRecords(
reference.pointer,
@@ -521,7 +526,9 @@ class HealthConnectClient extends jni$_.JObject {
jni$_.JList<jni$_.JString?> list1,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$kClass = kClass.reference;
final _$list = list.reference;
final _$list1 = list1.reference;
@@ -584,7 +591,9 @@ class HealthConnectClient extends jni$_.JObject {
TimeRangeFilter timeRangeFilter,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$kClass = kClass.reference;
final _$timeRangeFilter = timeRangeFilter.reference;
_deleteRecords$1(
@@ -646,7 +655,9 @@ class HealthConnectClient extends jni$_.JObject {
required jni$_.JObjType<$T> T,
}) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$kClass = kClass.reference;
final _$string = string.reference;
_readRecord(
@@ -709,7 +720,9 @@ class HealthConnectClient extends jni$_.JObject {
])
as jni$_.JObjType<$T>;
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$readRecordsRequest = readRecordsRequest.reference;
_readRecords(
reference.pointer,
@@ -762,7 +775,9 @@ class HealthConnectClient extends jni$_.JObject {
AggregateRequest aggregateRequest,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$aggregateRequest = aggregateRequest.reference;
_aggregate(
reference.pointer,
@@ -815,7 +830,9 @@ class HealthConnectClient extends jni$_.JObject {
AggregateGroupByDurationRequest aggregateGroupByDurationRequest,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$aggregateGroupByDurationRequest =
aggregateGroupByDurationRequest.reference;
_aggregateGroupByDuration(
@@ -873,7 +890,9 @@ class HealthConnectClient extends jni$_.JObject {
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$aggregateGroupByPeriodRequest =
aggregateGroupByPeriodRequest.reference;
_aggregateGroupByPeriod(
@@ -931,7 +950,9 @@ class HealthConnectClient extends jni$_.JObject {
ChangesTokenRequest changesTokenRequest,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$changesTokenRequest = changesTokenRequest.reference;
_getChangesToken(
reference.pointer,
@@ -990,7 +1011,9 @@ class HealthConnectClient extends jni$_.JObject {
jni$_.JObject iterable,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$string = string.reference;
final _$iterable = iterable.reference;
_registerForDataNotifications(
@@ -1045,7 +1068,9 @@ class HealthConnectClient extends jni$_.JObject {
jni$_.JString string,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$string = string.reference;
_unregisterFromDataNotifications(
reference.pointer,
@@ -1096,7 +1121,9 @@ class HealthConnectClient extends jni$_.JObject {
/// The returned object must be released after use, by calling the [release] method.
core$_.Future<jni$_.JObject> getChanges(jni$_.JString string) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$string = string.reference;
_getChanges(
reference.pointer,
@@ -1273,13 +1300,21 @@ class HealthConnectClient extends jni$_.JObject {
) {
return _$invokeMethod(
port,
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
jni$_.MethodInvocation.fromAddresses(
0,
descriptor.address,
args.address,
),
);
}
static final jni$_.Pointer<
jni$_.NativeFunction<
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
jni$_.JObjectPtr Function(
jni$_.Int64,
jni$_.JObjectPtr,
jni$_.JObjectPtr,
)
>
>
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
@@ -1872,9 +1907,15 @@ final class _$HealthConnectClient with $HealthConnectClient {
jni$_.JObject continuation,
)
_registerForDataNotifications;
final jni$_.JObject Function(jni$_.JString string, jni$_.JObject continuation)
final jni$_.JObject Function(
jni$_.JString string,
jni$_.JObject continuation,
)
_unregisterFromDataNotifications;
final jni$_.JObject Function(jni$_.JString string, jni$_.JObject continuation)
final jni$_.JObject Function(
jni$_.JString string,
jni$_.JObject continuation,
)
_getChanges;
final bool Function(Context context, jni$_.JList<jni$_.JString?> list)
_isAvailable;
@@ -1957,7 +1998,10 @@ final class _$HealthConnectClient with $HealthConnectClient {
AggregateGroupByPeriodRequest aggregateGroupByPeriodRequest,
jni$_.JObject continuation,
) {
return _aggregateGroupByPeriod(aggregateGroupByPeriodRequest, continuation);
return _aggregateGroupByPeriod(
aggregateGroupByPeriodRequest,
continuation,
);
}
jni$_.JObject getChangesToken(
@@ -2299,7 +2343,9 @@ class PermissionController extends jni$_.JObject {
jni$_.JSet<jni$_.JObject?> set,
) async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
final _$set = set.reference;
_getGrantedPermissions(
reference.pointer,
@@ -2351,7 +2397,9 @@ class PermissionController extends jni$_.JObject {
/// The returned object must be released after use, by calling the [release] method.
core$_.Future<jni$_.JObject> revokeAllPermissions() async {
final $p = jni$_.ReceivePort();
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation($p);
final _$continuation = jni$_.ProtectedJniExtensions.newPortContinuation(
$p,
);
_revokeAllPermissions(
reference.pointer,
@@ -2447,13 +2495,21 @@ class PermissionController extends jni$_.JObject {
) {
return _$invokeMethod(
port,
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
jni$_.MethodInvocation.fromAddresses(
0,
descriptor.address,
args.address,
),
);
}
static final jni$_.Pointer<
jni$_.NativeFunction<
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
jni$_.JObjectPtr Function(
jni$_.Int64,
jni$_.JObjectPtr,
jni$_.JObjectPtr,
)
>
>
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
@@ -4391,7 +4447,10 @@ class Context extends jni$_.JObject {
/// from: `static public final java.lang.String CARRIER_CONFIG_SERVICE`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get CARRIER_CONFIG_SERVICE =>
_id_CARRIER_CONFIG_SERVICE.get(_class, const jni$_.JStringNullableType());
_id_CARRIER_CONFIG_SERVICE.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_CLIPBOARD_SERVICE = _class.staticFieldId(
r'CLIPBOARD_SERVICE',
@@ -4551,7 +4610,10 @@ class Context extends jni$_.JObject {
/// from: `static public final java.lang.String FILE_INTEGRITY_SERVICE`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get FILE_INTEGRITY_SERVICE =>
_id_FILE_INTEGRITY_SERVICE.get(_class, const jni$_.JStringNullableType());
_id_FILE_INTEGRITY_SERVICE.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_FINGERPRINT_SERVICE = _class.staticFieldId(
r'FINGERPRINT_SERVICE',
@@ -5109,7 +5171,10 @@ class Context extends jni$_.JObject {
/// from: `static public final java.lang.String VPN_MANAGEMENT_SERVICE`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get VPN_MANAGEMENT_SERVICE =>
_id_VPN_MANAGEMENT_SERVICE.get(_class, const jni$_.JStringNullableType());
_id_VPN_MANAGEMENT_SERVICE.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_WALLPAPER_SERVICE = _class.staticFieldId(
r'WALLPAPER_SERVICE',
@@ -5671,7 +5736,11 @@ class Context extends jni$_.JObject {
/// from: `public abstract void setTheme(int i)`
void setTheme(int i) {
_setTheme(reference.pointer, _id_setTheme as jni$_.JMethodIDPtr, i).check();
_setTheme(
reference.pointer,
_id_setTheme as jni$_.JMethodIDPtr,
i,
).check();
}
static final _id_getTheme = _class.instanceMethodId(
@@ -9324,7 +9393,10 @@ class Context extends jni$_.JObject {
>();
/// from: `public abstract void enforceCallingPermission(java.lang.String string, java.lang.String string1)`
void enforceCallingPermission(jni$_.JString? string, jni$_.JString? string1) {
void enforceCallingPermission(
jni$_.JString? string,
jni$_.JString? string1,
) {
final _$string = string?.reference ?? jni$_.jNullReference;
final _$string1 = string1?.reference ?? jni$_.jNullReference;
_enforceCallingPermission(
@@ -9487,7 +9559,11 @@ class Context extends jni$_.JObject {
>();
/// from: `public abstract void revokeUriPermission(java.lang.String string, android.net.Uri uri, int i)`
void revokeUriPermission$1(jni$_.JString? string, jni$_.JObject? uri, int i) {
void revokeUriPermission$1(
jni$_.JString? string,
jni$_.JObject? uri,
int i,
) {
final _$string = string?.reference ?? jni$_.jNullReference;
final _$uri = uri?.reference ?? jni$_.jNullReference;
_revokeUriPermission$1(
@@ -10891,7 +10967,10 @@ class Intent$ShortcutIconResource extends jni$_.JObject {
/// The returned object must be released after use, by calling the [release] method.
factory Intent$ShortcutIconResource() {
return Intent$ShortcutIconResource.fromReference(
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
_new$(
_class.reference.pointer,
_id_new$ as jni$_.JMethodIDPtr,
).reference,
);
}
@@ -11241,7 +11320,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_BATTERY_CHANGED`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_BATTERY_CHANGED =>
_id_ACTION_BATTERY_CHANGED.get(_class, const jni$_.JStringNullableType());
_id_ACTION_BATTERY_CHANGED.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_BATTERY_LOW = _class.staticFieldId(
r'ACTION_BATTERY_LOW',
@@ -11367,7 +11449,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_CREATE_DOCUMENT`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_CREATE_DOCUMENT =>
_id_ACTION_CREATE_DOCUMENT.get(_class, const jni$_.JStringNullableType());
_id_ACTION_CREATE_DOCUMENT.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_CREATE_REMINDER = _class.staticFieldId(
r'ACTION_CREATE_REMINDER',
@@ -11377,7 +11462,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_CREATE_REMINDER`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_CREATE_REMINDER =>
_id_ACTION_CREATE_REMINDER.get(_class, const jni$_.JStringNullableType());
_id_ACTION_CREATE_REMINDER.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_CREATE_SHORTCUT = _class.staticFieldId(
r'ACTION_CREATE_SHORTCUT',
@@ -11387,7 +11475,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_CREATE_SHORTCUT`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_CREATE_SHORTCUT =>
_id_ACTION_CREATE_SHORTCUT.get(_class, const jni$_.JStringNullableType());
_id_ACTION_CREATE_SHORTCUT.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_DATE_CHANGED = _class.staticFieldId(
r'ACTION_DATE_CHANGED',
@@ -11649,7 +11740,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_INSTALL_FAILURE`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_INSTALL_FAILURE =>
_id_ACTION_INSTALL_FAILURE.get(_class, const jni$_.JStringNullableType());
_id_ACTION_INSTALL_FAILURE.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_INSTALL_PACKAGE = _class.staticFieldId(
r'ACTION_INSTALL_PACKAGE',
@@ -11659,7 +11753,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_INSTALL_PACKAGE`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_INSTALL_PACKAGE =>
_id_ACTION_INSTALL_PACKAGE.get(_class, const jni$_.JStringNullableType());
_id_ACTION_INSTALL_PACKAGE.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_LOCALE_CHANGED = _class.staticFieldId(
r'ACTION_LOCALE_CHANGED',
@@ -11941,7 +12038,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_MEDIA_UNMOUNTED`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_MEDIA_UNMOUNTED =>
_id_ACTION_MEDIA_UNMOUNTED.get(_class, const jni$_.JStringNullableType());
_id_ACTION_MEDIA_UNMOUNTED.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_MY_PACKAGE_REPLACED = _class.staticFieldId(
r'ACTION_MY_PACKAGE_REPLACED',
@@ -12062,7 +12162,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_PACKAGE_CHANGED`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_PACKAGE_CHANGED =>
_id_ACTION_PACKAGE_CHANGED.get(_class, const jni$_.JStringNullableType());
_id_ACTION_PACKAGE_CHANGED.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_PACKAGE_DATA_CLEARED = _class.staticFieldId(
r'ACTION_PACKAGE_DATA_CLEARED',
@@ -12111,7 +12214,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_PACKAGE_INSTALL`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_PACKAGE_INSTALL =>
_id_ACTION_PACKAGE_INSTALL.get(_class, const jni$_.JStringNullableType());
_id_ACTION_PACKAGE_INSTALL.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_PACKAGE_NEEDS_VERIFICATION = _class.staticFieldId(
r'ACTION_PACKAGE_NEEDS_VERIFICATION',
@@ -12134,7 +12240,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_PACKAGE_REMOVED`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_PACKAGE_REMOVED =>
_id_ACTION_PACKAGE_REMOVED.get(_class, const jni$_.JStringNullableType());
_id_ACTION_PACKAGE_REMOVED.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_PACKAGE_REPLACED = _class.staticFieldId(
r'ACTION_PACKAGE_REPLACED',
@@ -12213,7 +12322,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_POWER_CONNECTED`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_POWER_CONNECTED =>
_id_ACTION_POWER_CONNECTED.get(_class, const jni$_.JStringNullableType());
_id_ACTION_POWER_CONNECTED.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_POWER_DISCONNECTED = _class.staticFieldId(
r'ACTION_POWER_DISCONNECTED',
@@ -12471,7 +12583,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_SYSTEM_TUTORIAL`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_SYSTEM_TUTORIAL =>
_id_ACTION_SYSTEM_TUTORIAL.get(_class, const jni$_.JStringNullableType());
_id_ACTION_SYSTEM_TUTORIAL.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_TIMEZONE_CHANGED = _class.staticFieldId(
r'ACTION_TIMEZONE_CHANGED',
@@ -12570,7 +12685,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_USER_BACKGROUND`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_USER_BACKGROUND =>
_id_ACTION_USER_BACKGROUND.get(_class, const jni$_.JStringNullableType());
_id_ACTION_USER_BACKGROUND.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_USER_FOREGROUND = _class.staticFieldId(
r'ACTION_USER_FOREGROUND',
@@ -12580,7 +12698,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_USER_FOREGROUND`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_USER_FOREGROUND =>
_id_ACTION_USER_FOREGROUND.get(_class, const jni$_.JStringNullableType());
_id_ACTION_USER_FOREGROUND.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_USER_INITIALIZE = _class.staticFieldId(
r'ACTION_USER_INITIALIZE',
@@ -12590,7 +12711,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String ACTION_USER_INITIALIZE`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get ACTION_USER_INITIALIZE =>
_id_ACTION_USER_INITIALIZE.get(_class, const jni$_.JStringNullableType());
_id_ACTION_USER_INITIALIZE.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_ACTION_USER_PRESENT = _class.staticFieldId(
r'ACTION_USER_PRESENT',
@@ -12827,7 +12951,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String CATEGORY_APP_MESSAGING`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get CATEGORY_APP_MESSAGING =>
_id_CATEGORY_APP_MESSAGING.get(_class, const jni$_.JStringNullableType());
_id_CATEGORY_APP_MESSAGING.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_CATEGORY_APP_MUSIC = _class.staticFieldId(
r'CATEGORY_APP_MUSIC',
@@ -13245,7 +13372,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String EXTRA_ATTRIBUTION_TAGS`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get EXTRA_ATTRIBUTION_TAGS =>
_id_EXTRA_ATTRIBUTION_TAGS.get(_class, const jni$_.JStringNullableType());
_id_EXTRA_ATTRIBUTION_TAGS.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_EXTRA_AUTO_LAUNCH_SINGLE_CHOICE = _class.staticFieldId(
r'EXTRA_AUTO_LAUNCH_SINGLE_CHOICE',
@@ -13337,7 +13467,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String EXTRA_CHANGED_UID_LIST`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get EXTRA_CHANGED_UID_LIST =>
_id_EXTRA_CHANGED_UID_LIST.get(_class, const jni$_.JStringNullableType());
_id_EXTRA_CHANGED_UID_LIST.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_EXTRA_CHOOSER_REFINEMENT_INTENT_SENDER = _class
.staticFieldId(
@@ -13371,7 +13504,10 @@ class Intent extends jni$_.JObject {
/// from: `static public final java.lang.String EXTRA_CHOSEN_COMPONENT`
/// The returned object must be released after use, by calling the [release] method.
static jni$_.JString? get EXTRA_CHOSEN_COMPONENT =>
_id_EXTRA_CHOSEN_COMPONENT.get(_class, const jni$_.JStringNullableType());
_id_EXTRA_CHOSEN_COMPONENT.get(
_class,
const jni$_.JStringNullableType(),
);
static final _id_EXTRA_CHOSEN_COMPONENT_INTENT_SENDER = _class.staticFieldId(
r'EXTRA_CHOSEN_COMPONENT_INTENT_SENDER',
@@ -14212,11 +14348,16 @@ class Intent extends jni$_.JObject {
/// The returned object must be released after use, by calling the [release] method.
factory Intent() {
return Intent.fromReference(
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
_new$(
_class.reference.pointer,
_id_new$ as jni$_.JMethodIDPtr,
).reference,
);
}
static final _id_new$1 = _class.constructorId(r'(Landroid/content/Intent;)V');
static final _id_new$1 = _class.constructorId(
r'(Landroid/content/Intent;)V',
);
static final _new$1 =
jni$_.ProtectedJniExtensions.lookup<
@@ -15126,7 +15267,9 @@ class Intent extends jni$_.JObject {
reference.pointer,
_id_getCategories as jni$_.JMethodIDPtr,
).object<jni$_.JSet<jni$_.JString?>?>(
const jni$_.JSetNullableType<jni$_.JString?>(jni$_.JStringNullableType()),
const jni$_.JSetNullableType<jni$_.JString?>(
jni$_.JStringNullableType(),
),
);
}
@@ -15738,7 +15881,9 @@ class Intent extends jni$_.JObject {
/// from: `public android.os.Parcelable[] getParcelableArrayExtra(java.lang.String string)`
/// The returned object must be released after use, by calling the [release] method.
jni$_.JArray<jni$_.JObject?>? getParcelableArrayExtra(jni$_.JString? string) {
jni$_.JArray<jni$_.JObject?>? getParcelableArrayExtra(
jni$_.JString? string,
) {
final _$string = string?.reference ?? jni$_.jNullReference;
return _getParcelableArrayExtra(
reference.pointer,
@@ -15791,7 +15936,9 @@ class Intent extends jni$_.JObject {
_id_getParcelableArrayExtra$1 as jni$_.JMethodIDPtr,
_$string.pointer,
_$class$.pointer,
).object<jni$_.JArray<$T?>?>(jni$_.JArrayNullableType<$T?>(T.nullableType));
).object<jni$_.JArray<$T?>?>(
jni$_.JArrayNullableType<$T?>(T.nullableType),
);
}
static final _id_getParcelableArrayListExtra = _class.instanceMethodId(
@@ -19146,7 +19293,10 @@ class Activity extends jni$_.JObject {
/// The returned object must be released after use, by calling the [release] method.
factory Activity() {
return Activity.fromReference(
_new$(_class.reference.pointer, _id_new$ as jni$_.JMethodIDPtr).reference,
_new$(
_class.reference.pointer,
_id_new$ as jni$_.JMethodIDPtr,
).reference,
);
}
@@ -19457,10 +19607,11 @@ class Activity extends jni$_.JObject {
).object<jni$_.JObject?>(const jni$_.JObjectNullableType());
}
static final _id_registerActivityLifecycleCallbacks = _class.instanceMethodId(
r'registerActivityLifecycleCallbacks',
r'(Landroid/app/Application$ActivityLifecycleCallbacks;)V',
);
static final _id_registerActivityLifecycleCallbacks = _class
.instanceMethodId(
r'registerActivityLifecycleCallbacks',
r'(Landroid/app/Application$ActivityLifecycleCallbacks;)V',
);
static final _registerActivityLifecycleCallbacks =
jni$_.ProtectedJniExtensions.lookup<
@@ -22419,10 +22570,11 @@ class Activity extends jni$_.JObject {
).boolean;
}
static final _id_dispatchPopulateAccessibilityEvent = _class.instanceMethodId(
r'dispatchPopulateAccessibilityEvent',
r'(Landroid/view/accessibility/AccessibilityEvent;)Z',
);
static final _id_dispatchPopulateAccessibilityEvent = _class
.instanceMethodId(
r'dispatchPopulateAccessibilityEvent',
r'(Landroid/view/accessibility/AccessibilityEvent;)Z',
);
static final _dispatchPopulateAccessibilityEvent =
jni$_.ProtectedJniExtensions.lookup<
@@ -23263,7 +23415,10 @@ class Activity extends jni$_.JObject {
).check();
}
static final _id_showDialog = _class.instanceMethodId(r'showDialog', r'(I)V');
static final _id_showDialog = _class.instanceMethodId(
r'showDialog',
r'(I)V',
);
static final _showDialog =
jni$_.ProtectedJniExtensions.lookup<
@@ -23857,7 +24012,11 @@ class Activity extends jni$_.JObject {
/// from: `public void setTheme(int i)`
void setTheme(int i) {
_setTheme(reference.pointer, _id_setTheme as jni$_.JMethodIDPtr, i).check();
_setTheme(
reference.pointer,
_id_setTheme as jni$_.JMethodIDPtr,
i,
).check();
}
static final _id_requestPermissions = _class.instanceMethodId(
@@ -25209,7 +25368,10 @@ class Activity extends jni$_.JObject {
).object<jni$_.JObject?>(const jni$_.JObjectNullableType());
}
static final _id_setVisible = _class.instanceMethodId(r'setVisible', r'(Z)V');
static final _id_setVisible = _class.instanceMethodId(
r'setVisible',
r'(Z)V',
);
static final _setVisible =
jni$_.ProtectedJniExtensions.lookup<
@@ -27686,13 +27848,15 @@ class Instant extends jni$_.JObject {
/// from: `static public final java.time.Instant MAX`
/// The returned object must be released after use, by calling the [release] method.
static Instant? get MAX => _id_MAX.get(_class, const $Instant$NullableType());
static Instant? get MAX =>
_id_MAX.get(_class, const $Instant$NullableType());
static final _id_MIN = _class.staticFieldId(r'MIN', r'Ljava/time/Instant;');
/// from: `static public final java.time.Instant MIN`
/// The returned object must be released after use, by calling the [release] method.
static Instant? get MIN => _id_MIN.get(_class, const $Instant$NullableType());
static Instant? get MIN =>
_id_MIN.get(_class, const $Instant$NullableType());
static final _id_now = _class.staticMethodId(
r'now',
@@ -29447,7 +29611,8 @@ final class $AggregateGroupByPeriodRequest$NullableType
@core$_.override
bool operator ==(Object other) {
return other.runtimeType == ($AggregateGroupByPeriodRequest$NullableType) &&
return other.runtimeType ==
($AggregateGroupByPeriodRequest$NullableType) &&
other is $AggregateGroupByPeriodRequest$NullableType;
}
}
@@ -30953,13 +31118,21 @@ class AggregateMetric$Converter$FromDouble<$R extends jni$_.JObject>
) {
return _$invokeMethod(
port,
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
jni$_.MethodInvocation.fromAddresses(
0,
descriptor.address,
args.address,
),
);
}
static final jni$_.Pointer<
jni$_.NativeFunction<
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
jni$_.JObjectPtr Function(
jni$_.Int64,
jni$_.JObjectPtr,
jni$_.JObjectPtr,
)
>
>
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
@@ -31080,7 +31253,9 @@ final class $AggregateMetric$Converter$FromDouble$NullableType<
}
}
final class $AggregateMetric$Converter$FromDouble$Type<$R extends jni$_.JObject>
final class $AggregateMetric$Converter$FromDouble$Type<
$R extends jni$_.JObject
>
extends jni$_.JObjType<AggregateMetric$Converter$FromDouble<$R>> {
@jni$_.internal
final jni$_.JObjType<$R> R;
@@ -31166,13 +31341,21 @@ class AggregateMetric$Converter$FromLong<$R extends jni$_.JObject>
) {
return _$invokeMethod(
port,
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
jni$_.MethodInvocation.fromAddresses(
0,
descriptor.address,
args.address,
),
);
}
static final jni$_.Pointer<
jni$_.NativeFunction<
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
jni$_.JObjectPtr Function(
jni$_.Int64,
jni$_.JObjectPtr,
jni$_.JObjectPtr,
)
>
>
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
@@ -31230,8 +31413,9 @@ class AggregateMetric$Converter$FromLong<$R extends jni$_.JObject>
abstract base mixin class $AggregateMetric$Converter$FromLong<
$R extends jni$_.JObject
> {
factory $AggregateMetric$Converter$FromLong({required jni$_.JObjType<$R> R}) =
_$AggregateMetric$Converter$FromLong<$R>;
factory $AggregateMetric$Converter$FromLong({
required jni$_.JObjType<$R> R,
}) = _$AggregateMetric$Converter$FromLong<$R>;
jni$_.JObjType<$R> get R;
}
@@ -31387,13 +31571,21 @@ class AggregateMetric$Converter<
) {
return _$invokeMethod(
port,
jni$_.MethodInvocation.fromAddresses(0, descriptor.address, args.address),
jni$_.MethodInvocation.fromAddresses(
0,
descriptor.address,
args.address,
),
);
}
static final jni$_.Pointer<
jni$_.NativeFunction<
jni$_.JObjectPtr Function(jni$_.Int64, jni$_.JObjectPtr, jni$_.JObjectPtr)
jni$_.JObjectPtr Function(
jni$_.Int64,
jni$_.JObjectPtr,
jni$_.JObjectPtr,
)
>
>
_$invokePointer = jni$_.Pointer.fromFunction(_$invoke);
@@ -31549,8 +31741,9 @@ final class $AggregateMetric$Converter$Type<
@jni$_.internal
@core$_.override
AggregateMetric$Converter<$T, $R> fromReference(jni$_.JReference reference) =>
AggregateMetric$Converter<$T, $R>.fromReference(T, R, reference);
AggregateMetric$Converter<$T, $R> fromReference(
jni$_.JReference reference,
) => AggregateMetric$Converter<$T, $R>.fromReference(T, R, reference);
@jni$_.internal
@core$_.override
jni$_.JObjType get superType => const jni$_.JObjectNullableType();
@@ -31701,7 +31894,9 @@ final class $AggregateMetric$NullableType<$T extends jni$_.JObject>
@jni$_.internal
@core$_.override
AggregateMetric<$T>? fromReference(jni$_.JReference reference) =>
reference.isNull ? null : AggregateMetric<$T>.fromReference(T, reference);
reference.isNull
? null
: AggregateMetric<$T>.fromReference(T, reference);
@jni$_.internal
@core$_.override
jni$_.JObjType get superType => const jni$_.JObjectType();

File diff suppressed because it is too large Load Diff