diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd0d956d897..495a2f722ba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: strategy: fail-fast: false matrix: - flutter_version: [stable] + flutter_version: [stable, beta] os: [ubuntu-latest, macos-latest] steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 diff --git a/add_to_app/android_view/flutter_module_using_plugin_android_view/analysis_options.yaml b/add_to_app/android_view/flutter_module_using_plugin_android_view/analysis_options.yaml index 13d6fe105a3..0d5eaab355c 100644 --- a/add_to_app/android_view/flutter_module_using_plugin_android_view/analysis_options.yaml +++ b/add_to_app/android_view/flutter_module_using_plugin_android_view/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/add_to_app/android_view/flutter_module_using_plugin_content_sizing_android_view/analysis_options.yaml b/add_to_app/android_view/flutter_module_using_plugin_content_sizing_android_view/analysis_options.yaml index 13d6fe105a3..0d5eaab355c 100644 --- a/add_to_app/android_view/flutter_module_using_plugin_content_sizing_android_view/analysis_options.yaml +++ b/add_to_app/android_view/flutter_module_using_plugin_content_sizing_android_view/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/add_to_app/books/flutter_module_books/analysis_options.yaml b/add_to_app/books/flutter_module_books/analysis_options.yaml index 13d6fe105a3..0d5eaab355c 100644 --- a/add_to_app/books/flutter_module_books/analysis_options.yaml +++ b/add_to_app/books/flutter_module_books/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/add_to_app/fullscreen/flutter_module_fullscreen/analysis_options.yaml b/add_to_app/fullscreen/flutter_module_fullscreen/analysis_options.yaml index 13d6fe105a3..0d5eaab355c 100644 --- a/add_to_app/fullscreen/flutter_module_fullscreen/analysis_options.yaml +++ b/add_to_app/fullscreen/flutter_module_fullscreen/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/add_to_app/ios_content_resizing/flutter_module/analysis_options.yaml b/add_to_app/ios_content_resizing/flutter_module/analysis_options.yaml index a5744c1cfbe..e69de29bb2d 100644 --- a/add_to_app/ios_content_resizing/flutter_module/analysis_options.yaml +++ b/add_to_app/ios_content_resizing/flutter_module/analysis_options.yaml @@ -1,4 +0,0 @@ -include: package:flutter_lints/flutter.yaml - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options diff --git a/add_to_app/ios_content_resizing/ios_content_resizing/flutter_module/analysis_options.yaml b/add_to_app/ios_content_resizing/ios_content_resizing/flutter_module/analysis_options.yaml index 13d6fe105a3..e69de29bb2d 100644 --- a/add_to_app/ios_content_resizing/ios_content_resizing/flutter_module/analysis_options.yaml +++ b/add_to_app/ios_content_resizing/ios_content_resizing/flutter_module/analysis_options.yaml @@ -1 +0,0 @@ -include: package:analysis_defaults/flutter.yaml diff --git a/add_to_app/multiple_flutters/multiple_flutters_module/analysis_options.yaml b/add_to_app/multiple_flutters/multiple_flutters_module/analysis_options.yaml index 1b30f7553ce..0d5eaab355c 100644 --- a/add_to_app/multiple_flutters/multiple_flutters_module/analysis_options.yaml +++ b/add_to_app/multiple_flutters/multiple_flutters_module/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml \ No newline at end of file +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/add_to_app/plugin/flutter_module_using_plugin/analysis_options.yaml b/add_to_app/plugin/flutter_module_using_plugin/analysis_options.yaml index 13d6fe105a3..0d5eaab355c 100644 --- a/add_to_app/plugin/flutter_module_using_plugin/analysis_options.yaml +++ b/add_to_app/plugin/flutter_module_using_plugin/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/add_to_app/prebuilt_module/flutter_module/analysis_options.yaml b/add_to_app/prebuilt_module/flutter_module/analysis_options.yaml index 13d6fe105a3..0d5eaab355c 100644 --- a/add_to_app/prebuilt_module/flutter_module/analysis_options.yaml +++ b/add_to_app/prebuilt_module/flutter_module/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../../analysis_options.yaml diff --git a/analysis_options.yaml b/analysis_options.yaml new file mode 100644 index 00000000000..2273994a1c5 --- /dev/null +++ b/analysis_options.yaml @@ -0,0 +1,11 @@ +include: package:analysis_defaults/flutter.yaml + +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** diff --git a/android_splash_screen/analysis_options.yaml b/android_splash_screen/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/android_splash_screen/analysis_options.yaml +++ b/android_splash_screen/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/animation_gallery/ios/Flutter/ephemeral/flutter_lldb_helper.py b/animation_gallery/ios/Flutter/ephemeral/flutter_lldb_helper.py new file mode 100644 index 00000000000..a88caf99df9 --- /dev/null +++ b/animation_gallery/ios/Flutter/ephemeral/flutter_lldb_helper.py @@ -0,0 +1,32 @@ +# +# Generated file, do not edit. +# + +import lldb + +def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict): + """Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages.""" + base = frame.register["x0"].GetValueAsAddress() + page_len = frame.register["x1"].GetValueAsUnsigned() + + # Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the + # first page to see if handled it correctly. This makes diagnosing + # misconfiguration (e.g. missing breakpoint) easier. + data = bytearray(page_len) + data[0:8] = b'IHELPED!' + + error = lldb.SBError() + frame.GetThread().GetProcess().WriteMemory(base, data, error) + if not error.Success(): + print(f'Failed to write into {base}[+{page_len}]', error) + return + +def __lldb_init_module(debugger: lldb.SBDebugger, _): + target = debugger.GetDummyTarget() + # Caveat: must use BreakpointCreateByRegEx here and not + # BreakpointCreateByName. For some reasons callback function does not + # get carried over from dummy target for the later. + bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$") + bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__)) + bp.SetAutoContinue(True) + print("-- LLDB integration loaded --") diff --git a/animation_gallery/ios/Flutter/ephemeral/flutter_lldbinit b/animation_gallery/ios/Flutter/ephemeral/flutter_lldbinit new file mode 100644 index 00000000000..e3ba6fbedcd --- /dev/null +++ b/animation_gallery/ios/Flutter/ephemeral/flutter_lldbinit @@ -0,0 +1,5 @@ +# +# Generated file, do not edit. +# + +command script import --relative-to-command-file flutter_lldb_helper.py diff --git a/animation_gallery/ios/Flutter/ephemeral/flutter_native_integration.env b/animation_gallery/ios/Flutter/ephemeral/flutter_native_integration.env new file mode 100644 index 00000000000..b5e017d4afe --- /dev/null +++ b/animation_gallery/ios/Flutter/ephemeral/flutter_native_integration.env @@ -0,0 +1,12 @@ +FLUTTER_ROOT=/Users/ewindmill/development/flutter +FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery +FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/ios/Flutter/ephemeral/Packages/.packages/FlutterFramework +COCOAPODS_PARALLEL_CODE_SIGN=true +FLUTTER_TARGET=lib/main.dart +FLUTTER_BUILD_DIR=build +FLUTTER_BUILD_NAME=1.0.0 +FLUTTER_BUILD_NUMBER=1 +DART_OBFUSCATION=false +TRACK_WIDGET_CREATION=true +TREE_SHAKE_ICONS=false +PACKAGE_CONFIG=.dart_tool/package_config.json diff --git a/animation_gallery/macos/Flutter/ephemeral/Flutter-Generated.xcconfig b/animation_gallery/macos/Flutter/ephemeral/Flutter-Generated.xcconfig new file mode 100644 index 00000000000..9379bfeca91 --- /dev/null +++ b/animation_gallery/macos/Flutter/ephemeral/Flutter-Generated.xcconfig @@ -0,0 +1,12 @@ +// This is a generated file; do not edit or check into version control. +FLUTTER_ROOT=/Users/ewindmill/development/flutter +FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery +FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/macos/Flutter/ephemeral/Packages/.packages/FlutterFramework +COCOAPODS_PARALLEL_CODE_SIGN=true +FLUTTER_BUILD_DIR=build +FLUTTER_BUILD_NAME=1.0.0 +FLUTTER_BUILD_NUMBER=1 +DART_OBFUSCATION=false +TRACK_WIDGET_CREATION=true +TREE_SHAKE_ICONS=false +PACKAGE_CONFIG=.dart_tool/package_config.json diff --git a/animation_gallery/macos/Flutter/ephemeral/flutter_export_environment.sh b/animation_gallery/macos/Flutter/ephemeral/flutter_export_environment.sh new file mode 100755 index 00000000000..76ce3ca2584 --- /dev/null +++ b/animation_gallery/macos/Flutter/ephemeral/flutter_export_environment.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=/Users/ewindmill/development/flutter" +export "FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery" +export "FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/macos/Flutter/ephemeral/Packages/.packages/FlutterFramework" +export "COCOAPODS_PARALLEL_CODE_SIGN=true" +export "FLUTTER_BUILD_DIR=build" +export "FLUTTER_BUILD_NAME=1.0.0" +export "FLUTTER_BUILD_NUMBER=1" +export "DART_OBFUSCATION=false" +export "TRACK_WIDGET_CREATION=true" +export "TREE_SHAKE_ICONS=false" +export "PACKAGE_CONFIG=.dart_tool/package_config.json" diff --git a/animation_gallery/macos/Flutter/ephemeral/flutter_native_integration.env b/animation_gallery/macos/Flutter/ephemeral/flutter_native_integration.env new file mode 100644 index 00000000000..d9c02a50152 --- /dev/null +++ b/animation_gallery/macos/Flutter/ephemeral/flutter_native_integration.env @@ -0,0 +1,11 @@ +FLUTTER_ROOT=/Users/ewindmill/development/flutter +FLUTTER_APPLICATION_PATH=/Users/ewindmill/development/samples/animation_gallery +FLUTTER_FRAMEWORK_SWIFT_PACKAGE_PATH=/Users/ewindmill/development/samples/animation_gallery/macos/Flutter/ephemeral/Packages/.packages/FlutterFramework +COCOAPODS_PARALLEL_CODE_SIGN=true +FLUTTER_BUILD_DIR=build +FLUTTER_BUILD_NAME=1.0.0 +FLUTTER_BUILD_NUMBER=1 +DART_OBFUSCATION=false +TRACK_WIDGET_CREATION=true +TREE_SHAKE_ICONS=false +PACKAGE_CONFIG=.dart_tool/package_config.json diff --git a/animations/analysis_options.yaml b/animations/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/animations/analysis_options.yaml +++ b/animations/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/asset_transformation/grayscale_transformer/analysis_options.yaml b/asset_transformation/grayscale_transformer/analysis_options.yaml index dee8927aafe..a96029588a0 100644 --- a/asset_transformation/grayscale_transformer/analysis_options.yaml +++ b/asset_transformation/grayscale_transformer/analysis_options.yaml @@ -1,30 +1,10 @@ -# This file configures the static analysis results for your project (errors, -# warnings, and lints). -# -# This enables the 'recommended' set of lints from `package:lints`. -# This set helps identify many issues that may lead to problems when running -# or consuming Dart code, and enforces writing Dart using a single, idiomatic -# style and format. -# -# If you want a smaller set of lints you can change this to specify -# 'package:lints/core.yaml'. These are just the most critical lints -# (the recommended set includes the core lints). -# The core lints are also what is used by pub.dev for scoring packages. - -include: package:lints/recommended.yaml - -# Uncomment the following section to specify additional rules. - -# linter: -# rules: -# - camel_case_types - -# analyzer: -# exclude: -# - path/to/excluded/files/** - -# For more information about the core and recommended set of lints, see -# https://dart.dev/go/core-lints - -# For additional information about configuring this file, see -# https://dart.dev/guides/language/analysis-options +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../analysis_options.yaml diff --git a/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart b/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart index ac1e6179505..b80fe7184e7 100644 --- a/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart +++ b/asset_transformation/grayscale_transformer/bin/grayscale_transformer.dart @@ -16,8 +16,8 @@ int main(List arguments) { ..addOption(outputOptionName, mandatory: true, abbr: 'o'); ArgResults argResults = parser.parse(arguments); - final String inputFilePath = argResults[inputOptionName]; - final String outputFilePath = argResults[outputOptionName]; + final String inputFilePath = argResults[inputOptionName] as String; + final String outputFilePath = argResults[outputOptionName] as String; try { final Image image = decodeImage(File(inputFilePath).readAsBytesSync())!; diff --git a/asset_transformation/test/main_test.dart b/asset_transformation/test/main_test.dart index e3bae36eec3..2c84aa5f22c 100644 --- a/asset_transformation/test/main_test.dart +++ b/asset_transformation/test/main_test.dart @@ -1,8 +1,8 @@ -import 'package:flutter_test/flutter_test.dart'; import 'package:asset_transformation/main.dart'; +import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('app can render without exceptions', (WidgetTester tester) async { + testWidgets('app can render without exceptions', (tester) async { await tester.pumpWidget(const MainApp()); }); } diff --git a/background_isolate_channels/analysis_options.yaml b/background_isolate_channels/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/background_isolate_channels/analysis_options.yaml +++ b/background_isolate_channels/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/compass_app/app/analysis_options.yaml b/compass_app/app/analysis_options.yaml index 06985b74eb8..fbaa406100c 100644 --- a/compass_app/app/analysis_options.yaml +++ b/compass_app/app/analysis_options.yaml @@ -1,5 +1,3 @@ -include: package:flutter_lints/flutter.yaml - linter: rules: - combinators_ordering @@ -9,3 +7,13 @@ linter: - prefer_final_in_for_each - prefer_final_locals - prefer_relative_imports + +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** \ No newline at end of file diff --git a/compass_app/app/lib/data/repositories/booking/booking_repository_remote.dart b/compass_app/app/lib/data/repositories/booking/booking_repository_remote.dart index c4d410272c7..61d9bd3ebad 100644 --- a/compass_app/app/lib/data/repositories/booking/booking_repository_remote.dart +++ b/compass_app/app/lib/data/repositories/booking/booking_repository_remote.dart @@ -31,7 +31,7 @@ class BookingRepositoryRemote implements BookingRepository { .map((activity) => activity.ref) .toList(), ); - return _apiClient.postBooking(bookingApiModel); + return await _apiClient.postBooking(bookingApiModel); } on Exception catch (e) { return Result.error(e); } @@ -121,7 +121,7 @@ class BookingRepositoryRemote implements BookingRepository { @override Future> delete(int id) async { try { - return _apiClient.deleteBooking(id); + return await _apiClient.deleteBooking(id); } on Exception catch (e) { return Result.error(e); } diff --git a/compass_app/app/lib/domain/use_cases/booking/booking_create_use_case.dart b/compass_app/app/lib/domain/use_cases/booking/booking_create_use_case.dart index 3fcff3e30b9..cec85afa561 100644 --- a/compass_app/app/lib/domain/use_cases/booking/booking_create_use_case.dart +++ b/compass_app/app/lib/domain/use_cases/booking/booking_create_use_case.dart @@ -85,7 +85,6 @@ class BookingCreateUseCase { switch (saveBookingResult) { case Ok(): _log.fine('Booking saved successfully'); - break; case Error(): _log.warning('Failed to save booking', saveBookingResult.error); return Result.error(saveBookingResult.error); diff --git a/compass_app/app/lib/routing/router.dart b/compass_app/app/lib/routing/router.dart index 2d30300855b..390f32ecec2 100644 --- a/compass_app/app/lib/routing/router.dart +++ b/compass_app/app/lib/routing/router.dart @@ -46,9 +46,7 @@ GoRouter router(AuthRepository authRepository) => GoRouter( authRepository: context.read(), itineraryConfigRepository: context.read(), ); - return HomeScreenContainer( - logoutViewModel: logoutViewModel, - ); + return HomeScreenContainer(logoutViewModel: logoutViewModel); }, routes: [ GoRoute( diff --git a/compass_app/app/lib/ui/core/localization/applocalization.dart b/compass_app/app/lib/ui/core/localization/applocalization.dart index b4aa2823cfe..d9ecd312803 100644 --- a/compass_app/app/lib/ui/core/localization/applocalization.dart +++ b/compass_app/app/lib/ui/core/localization/applocalization.dart @@ -7,7 +7,7 @@ import 'package:flutter/material.dart'; class AppLocalization { static AppLocalization of(BuildContext context) { - return Localizations.of(context, AppLocalization); + return Localizations.of(context, AppLocalization)!; } static const _strings = { diff --git a/compass_app/app/lib/ui/home/widgets/home_screen_container.dart b/compass_app/app/lib/ui/home/widgets/home_screen_container.dart index 31608b1a530..5ec0cbcf701 100644 --- a/compass_app/app/lib/ui/home/widgets/home_screen_container.dart +++ b/compass_app/app/lib/ui/home/widgets/home_screen_container.dart @@ -8,10 +8,7 @@ import '../view_models/home_viewmodel.dart'; import 'home_screen.dart'; class HomeScreenContainer extends StatefulWidget { - const HomeScreenContainer({ - super.key, - required this.logoutViewModel, - }); + const HomeScreenContainer({super.key, required this.logoutViewModel}); final LogoutViewModel logoutViewModel; diff --git a/compass_app/app/lib/ui/search_form/widgets/search_form_continent.dart b/compass_app/app/lib/ui/search_form/widgets/search_form_continent.dart index a1299188610..d59b5eb4b10 100644 --- a/compass_app/app/lib/ui/search_form/widgets/search_form_continent.dart +++ b/compass_app/app/lib/ui/search_form/widgets/search_form_continent.dart @@ -52,7 +52,7 @@ class SearchFormContinent extends StatelessWidget { scrollDirection: Axis.horizontal, itemCount: viewModel.continents.length, padding: Dimens.of(context).edgeInsetsScreenHorizontal, - itemBuilder: (BuildContext context, int index) { + itemBuilder: (context, index) { final Continent(:imageUrl, :name) = viewModel.continents[index]; return _CarouselItem( key: ValueKey(name), @@ -61,7 +61,7 @@ class SearchFormContinent extends StatelessWidget { viewModel: viewModel, ); }, - separatorBuilder: (BuildContext context, int index) { + separatorBuilder: (context, index) { return const SizedBox(width: 8); }, ); diff --git a/compass_app/app/macos/Flutter/GeneratedPluginRegistrant.swift b/compass_app/app/macos/Flutter/GeneratedPluginRegistrant.swift index 8c02029d1e4..8255a0b9913 100644 --- a/compass_app/app/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/compass_app/app/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,13 +5,11 @@ import FlutterMacOS import Foundation -import path_provider_foundation import share_plus import shared_preferences_foundation import sqflite_darwin func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { - PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin")) SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin")) SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin")) diff --git a/compass_app/app/test/ui/activities/activities_screen_test.dart b/compass_app/app/test/ui/activities/activities_screen_test.dart index fb76286e66e..1ed1a4c7d9c 100644 --- a/compass_app/app/test/ui/activities/activities_screen_test.dart +++ b/compass_app/app/test/ui/activities/activities_screen_test.dart @@ -45,14 +45,14 @@ void main() { ); } - testWidgets('should load screen', (WidgetTester tester) async { + testWidgets('should load screen', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); expect(find.byType(ActivitiesScreen), findsOneWidget); }); }); - testWidgets('should list activity', (WidgetTester tester) async { + testWidgets('should list activity', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); expect(find.byType(ActivityEntry), findsOneWidget); @@ -60,9 +60,7 @@ void main() { }); }); - testWidgets('should select activity and confirm', ( - WidgetTester tester, - ) async { + testWidgets('should select activity and confirm', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); // Select one activity diff --git a/compass_app/app/test/ui/auth/login_screen_test.dart b/compass_app/app/test/ui/auth/login_screen_test.dart index a893e8eaab4..80eb45edfd2 100644 --- a/compass_app/app/test/ui/auth/login_screen_test.dart +++ b/compass_app/app/test/ui/auth/login_screen_test.dart @@ -32,14 +32,14 @@ void main() { ); } - testWidgets('should load screen', (WidgetTester tester) async { + testWidgets('should load screen', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); expect(find.byType(LoginScreen), findsOneWidget); }); }); - testWidgets('should perform login', (WidgetTester tester) async { + testWidgets('should perform login', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); diff --git a/compass_app/app/test/ui/auth/logout_button_test.dart b/compass_app/app/test/ui/auth/logout_button_test.dart index 07891ce89ed..52397dbf19c 100644 --- a/compass_app/app/test/ui/auth/logout_button_test.dart +++ b/compass_app/app/test/ui/auth/logout_button_test.dart @@ -43,14 +43,14 @@ void main() { ); } - testWidgets('should load widget', (WidgetTester tester) async { + testWidgets('should load widget', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); expect(find.byType(LogoutButton), findsOneWidget); }); }); - testWidgets('should perform logout', (WidgetTester tester) async { + testWidgets('should perform logout', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); diff --git a/compass_app/app/test/ui/booking/booking_screen_test.dart b/compass_app/app/test/ui/booking/booking_screen_test.dart index 0036e1703f8..5499dc92ba8 100644 --- a/compass_app/app/test/ui/booking/booking_screen_test.dart +++ b/compass_app/app/test/ui/booking/booking_screen_test.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import 'dart:async'; + import 'package:compass_app/domain/models/itinerary_config/itinerary_config.dart'; import 'package:compass_app/domain/use_cases/booking/booking_create_use_case.dart'; import 'package:compass_app/domain/use_cases/booking/booking_share_use_case.dart'; @@ -62,20 +64,20 @@ void main() { ); } - testWidgets('should load screen', (WidgetTester tester) async { + testWidgets('should load screen', (tester) async { await loadScreen(tester); expect(find.byType(BookingScreen), findsOneWidget); }); - testWidgets('should display booking from ID', (WidgetTester tester) async { + testWidgets('should display booking from ID', (tester) async { // Add a booking to repository - bookingRepository.createBooking(kBooking); + unawaited(bookingRepository.createBooking(kBooking)); // Load screen await loadScreen(tester); // Load booking with ID 0 - viewModel.loadBooking.execute(0); + unawaited(viewModel.loadBooking.execute(0)); // Wait for booking to load await tester.pumpAndSettle(); @@ -84,13 +86,11 @@ void main() { expect(find.text(kBooking.destination.tags.first), findsOneWidget); }); - testWidgets('should create booking from itinerary config', ( - WidgetTester tester, - ) async { + testWidgets('should create booking from itinerary config', (tester) async { await loadScreen(tester); // Create a new booking from stored itinerary config - viewModel.createBooking.execute(); + unawaited(viewModel.createBooking.execute()); // Wait for booking to load await tester.pumpAndSettle(); @@ -102,10 +102,10 @@ void main() { expect(bookingRepository.bookings.length, 1); }); - testWidgets('should share booking', (WidgetTester tester) async { - bookingRepository.createBooking(kBooking); + testWidgets('should share booking', (tester) async { + unawaited(bookingRepository.createBooking(kBooking)); await loadScreen(tester); - viewModel.loadBooking.execute(0); + unawaited(viewModel.loadBooking.execute(0)); await tester.pumpAndSettle(); await tester.tap(find.byKey(const Key('share-button'))); expect(shared, true); diff --git a/compass_app/app/test/ui/home/widgets/home_screen_test.dart b/compass_app/app/test/ui/home/widgets/home_screen_test.dart index a9998110043..4464f53254d 100644 --- a/compass_app/app/test/ui/home/widgets/home_screen_test.dart +++ b/compass_app/app/test/ui/home/widgets/home_screen_test.dart @@ -43,10 +43,7 @@ void main() { Future loadWidget(WidgetTester tester) async { await testApp( tester, - HomeScreen( - viewModel: viewModel, - logoutViewModel: logoutViewModel, - ), + HomeScreen(viewModel: viewModel, logoutViewModel: logoutViewModel), goRouter: goRouter, ); } diff --git a/compass_app/app/test/ui/results/results_screen_test.dart b/compass_app/app/test/ui/results/results_screen_test.dart index cfb1ce3a399..f7197a90825 100644 --- a/compass_app/app/test/ui/results/results_screen_test.dart +++ b/compass_app/app/test/ui/results/results_screen_test.dart @@ -42,14 +42,14 @@ void main() { ); } - testWidgets('should load screen', (WidgetTester tester) async { + testWidgets('should load screen', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); expect(find.byType(ResultsScreen), findsOneWidget); }); }); - testWidgets('should display destination', (WidgetTester tester) async { + testWidgets('should display destination', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); @@ -62,9 +62,7 @@ void main() { }); }); - testWidgets('should tap and navigate to activities', ( - WidgetTester tester, - ) async { + testWidgets('should tap and navigate to activities', (tester) async { await mockNetworkImages(() async { await loadScreen(tester); diff --git a/compass_app/app/test/ui/search_form/widgets/search_form_continent_test.dart b/compass_app/app/test/ui/search_form/widgets/search_form_continent_test.dart index 6015cecec1d..a009d359108 100644 --- a/compass_app/app/test/ui/search_form/widgets/search_form_continent_test.dart +++ b/compass_app/app/test/ui/search_form/widgets/search_form_continent_test.dart @@ -25,9 +25,7 @@ void main() { await testApp(tester, SearchFormContinent(viewModel: viewModel)); } - testWidgets('Should load and select continent', ( - WidgetTester tester, - ) async { + testWidgets('Should load and select continent', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormContinent), findsOneWidget); diff --git a/compass_app/app/test/ui/search_form/widgets/search_form_date_test.dart b/compass_app/app/test/ui/search_form/widgets/search_form_date_test.dart index f099dc2abaa..d9cb5e2699f 100644 --- a/compass_app/app/test/ui/search_form/widgets/search_form_date_test.dart +++ b/compass_app/app/test/ui/search_form/widgets/search_form_date_test.dart @@ -26,9 +26,7 @@ void main() { await testApp(tester, SearchFormDate(viewModel: viewModel)); } - testWidgets('should display date in different month', ( - WidgetTester tester, - ) async { + testWidgets('should display date in different month', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormDate), findsOneWidget); @@ -45,9 +43,7 @@ void main() { expect(find.text('12 Jun - 23 Jul'), findsOneWidget); }); - testWidgets('should display date in same month', ( - WidgetTester tester, - ) async { + testWidgets('should display date in same month', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormDate), findsOneWidget); diff --git a/compass_app/app/test/ui/search_form/widgets/search_form_guests_test.dart b/compass_app/app/test/ui/search_form/widgets/search_form_guests_test.dart index 858f3e0027e..5aff3a9831c 100644 --- a/compass_app/app/test/ui/search_form/widgets/search_form_guests_test.dart +++ b/compass_app/app/test/ui/search_form/widgets/search_form_guests_test.dart @@ -26,7 +26,7 @@ void main() { await testApp(tester, SearchFormGuests(viewModel: viewModel)); } - testWidgets('Increase number of guests', (WidgetTester tester) async { + testWidgets('Increase number of guests', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormGuests), findsOneWidget); @@ -39,7 +39,7 @@ void main() { expect(find.text('1'), findsOneWidget); }); - testWidgets('Decrease number of guests', (WidgetTester tester) async { + testWidgets('Decrease number of guests', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormGuests), findsOneWidget); diff --git a/compass_app/app/test/ui/search_form/widgets/search_form_screen_test.dart b/compass_app/app/test/ui/search_form/widgets/search_form_screen_test.dart index 355cc80f827..9d22a121072 100644 --- a/compass_app/app/test/ui/search_form/widgets/search_form_screen_test.dart +++ b/compass_app/app/test/ui/search_form/widgets/search_form_screen_test.dart @@ -46,9 +46,7 @@ void main() { ); } - testWidgets('Should fill form and perform search', ( - WidgetTester tester, - ) async { + testWidgets('Should fill form and perform search', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormScreen), findsOneWidget); diff --git a/compass_app/app/test/ui/search_form/widgets/search_form_submit_test.dart b/compass_app/app/test/ui/search_form/widgets/search_form_submit_test.dart index 949d4043604..4fa99b52d3e 100644 --- a/compass_app/app/test/ui/search_form/widgets/search_form_submit_test.dart +++ b/compass_app/app/test/ui/search_form/widgets/search_form_submit_test.dart @@ -34,7 +34,7 @@ void main() { ); } - testWidgets('Should be enabled and allow tap', (WidgetTester tester) async { + testWidgets('Should be enabled and allow tap', (tester) async { await loadWidget(tester); expect(find.byType(SearchFormSubmit), findsOneWidget); diff --git a/compass_app/app/test/utils/command_test.dart b/compass_app/app/test/utils/command_test.dart index 4633fb41fd0..733f383f3ff 100644 --- a/compass_app/app/test/utils/command_test.dart +++ b/compass_app/app/test/utils/command_test.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import 'dart:async'; + import 'package:compass_app/utils/command.dart'; import 'package:compass_app/utils/result.dart'; import 'package:flutter_test/flutter_test.dart'; @@ -53,10 +55,10 @@ void main() { final future = command.execute(); // Run multiple times - command.execute(); - command.execute(); - command.execute(); - command.execute(); + unawaited(command.execute()); + unawaited(command.execute()); + unawaited(command.execute()); + unawaited(command.execute()); // Await execution await future; diff --git a/compass_app/server/analysis_options.yaml b/compass_app/server/analysis_options.yaml new file mode 100644 index 00000000000..fbaa406100c --- /dev/null +++ b/compass_app/server/analysis_options.yaml @@ -0,0 +1,19 @@ +linter: + rules: + - combinators_ordering + - directives_ordering + - omit_local_variable_types + - prefer_final_fields + - prefer_final_in_for_each + - prefer_final_locals + - prefer_relative_imports + +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** \ No newline at end of file diff --git a/compass_app/server/bin/compass_server.dart b/compass_app/server/bin/compass_server.dart index 7f201155291..5dc7c62516c 100644 --- a/compass_app/server/bin/compass_server.dart +++ b/compass_app/server/bin/compass_server.dart @@ -35,5 +35,6 @@ void main(List args) async { // For running in containers, we respect the PORT environment variable. final port = int.parse(Platform.environment['PORT'] ?? '8080'); final server = await serve(handler, ip, port); + // ignore: avoid_print print('Server listening on port ${server.port}'); } diff --git a/cupertino_gallery/analysis_options.yaml b/cupertino_gallery/analysis_options.yaml index 0d2902135ca..d770e9ca628 100644 --- a/cupertino_gallery/analysis_options.yaml +++ b/cupertino_gallery/analysis_options.yaml @@ -1,28 +1,10 @@ -# 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.dev/lints. - # - # 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 +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/cupertino_gallery/lib/gallery_home.dart b/cupertino_gallery/lib/gallery_home.dart index fc1b25f2615..cd206ed804b 100644 --- a/cupertino_gallery/lib/gallery_home.dart +++ b/cupertino_gallery/lib/gallery_home.dart @@ -31,9 +31,9 @@ class GalleryHome extends StatelessWidget { ), ], ), - tabBuilder: (BuildContext context, int index) { + tabBuilder: (context, index) { return CupertinoTabView( - builder: (BuildContext context) { + builder: (context) { return switch (index) { 0 => const WidgetsPage(), 1 => SettingsPage( diff --git a/cupertino_gallery/lib/settings_page.dart b/cupertino_gallery/lib/settings_page.dart index ae35c44615c..6022afb96a7 100644 --- a/cupertino_gallery/lib/settings_page.dart +++ b/cupertino_gallery/lib/settings_page.dart @@ -54,7 +54,7 @@ class _SettingsPageState extends State { title: const Text('Dark Mode'), trailing: CupertinoSwitch( value: isDarkMode, - onChanged: (bool isActive) { + onChanged: (isActive) { setState(() { isDarkMode = isActive; widget.onThemeChange(isActive); @@ -70,7 +70,7 @@ class _SettingsPageState extends State { value: _textSize, min: 0.5, max: 1.5, - onChanged: (double value) { + onChanged: (value) { setState(() { _textSize = value; }); @@ -103,7 +103,7 @@ class _SettingsPageState extends State { onTap: () { showCupertinoDialog( context: context, - builder: (BuildContext context) => CupertinoAlertDialog( + builder: (context) => CupertinoAlertDialog( title: const Text('Reset Settings'), content: const Text( 'Are you sure you want to reset all settings?', diff --git a/cupertino_gallery/lib/widgets/action_sheet_page.dart b/cupertino_gallery/lib/widgets/action_sheet_page.dart index b5a8c5b0ecf..0a26a4f70b8 100644 --- a/cupertino_gallery/lib/widgets/action_sheet_page.dart +++ b/cupertino_gallery/lib/widgets/action_sheet_page.dart @@ -13,7 +13,7 @@ class ActionSheetPage extends StatelessWidget { onPressed: () { showCupertinoModalPopup( context: context, - builder: (BuildContext context) => CupertinoActionSheet( + builder: (context) => CupertinoActionSheet( title: const Text('Title'), message: const Text('Message'), actions: [ diff --git a/cupertino_gallery/lib/widgets/alert_dialog_page.dart b/cupertino_gallery/lib/widgets/alert_dialog_page.dart index 416ba5160bd..bd8aa7842cc 100644 --- a/cupertino_gallery/lib/widgets/alert_dialog_page.dart +++ b/cupertino_gallery/lib/widgets/alert_dialog_page.dart @@ -13,7 +13,7 @@ class AlertDialogPage extends StatelessWidget { onPressed: () { showCupertinoDialog( context: context, - builder: (BuildContext context) => CupertinoAlertDialog( + builder: (context) => CupertinoAlertDialog( title: const Text('Alert'), content: const Text('This is a sample alert dialog.'), actions: [ diff --git a/cupertino_gallery/lib/widgets/checkbox_page.dart b/cupertino_gallery/lib/widgets/checkbox_page.dart index 6244e6b87ba..b482054d08e 100644 --- a/cupertino_gallery/lib/widgets/checkbox_page.dart +++ b/cupertino_gallery/lib/widgets/checkbox_page.dart @@ -17,7 +17,7 @@ class _CheckboxPageState extends State { child: Center( child: CupertinoCheckbox( value: _value, - onChanged: (bool? value) { + onChanged: (value) { setState(() { _value = value!; }); diff --git a/cupertino_gallery/lib/widgets/date_picker_page.dart b/cupertino_gallery/lib/widgets/date_picker_page.dart index 126bd967cce..aee62b46a7b 100644 --- a/cupertino_gallery/lib/widgets/date_picker_page.dart +++ b/cupertino_gallery/lib/widgets/date_picker_page.dart @@ -10,7 +10,7 @@ class DatePickerPage extends StatelessWidget { child: Center( child: SizedBox( height: 200, - child: CupertinoDatePicker(onDateTimeChanged: (DateTime newDate) {}), + child: CupertinoDatePicker(onDateTimeChanged: (newDate) {}), ), ), ); diff --git a/cupertino_gallery/lib/widgets/picker_page.dart b/cupertino_gallery/lib/widgets/picker_page.dart index 63223061daf..60ef8e6c27d 100644 --- a/cupertino_gallery/lib/widgets/picker_page.dart +++ b/cupertino_gallery/lib/widgets/picker_page.dart @@ -12,7 +12,7 @@ class PickerPage extends StatelessWidget { height: 200, child: CupertinoPicker( itemExtent: 32, - onSelectedItemChanged: (int index) {}, + onSelectedItemChanged: (index) {}, children: const [Text('One'), Text('Two'), Text('Three')], ), ), diff --git a/cupertino_gallery/lib/widgets/popup_surface_page.dart b/cupertino_gallery/lib/widgets/popup_surface_page.dart index c817ab4744b..d871e6c7fbb 100644 --- a/cupertino_gallery/lib/widgets/popup_surface_page.dart +++ b/cupertino_gallery/lib/widgets/popup_surface_page.dart @@ -15,7 +15,7 @@ class PopupSurfacePage extends StatelessWidget { onPressed: () { showCupertinoModalPopup( context: context, - builder: (BuildContext context) { + builder: (context) { return CupertinoPopupSurface( child: Container( color: CupertinoColors.white, diff --git a/cupertino_gallery/lib/widgets/radio_page.dart b/cupertino_gallery/lib/widgets/radio_page.dart index f5e7684725f..c6003c17dc2 100644 --- a/cupertino_gallery/lib/widgets/radio_page.dart +++ b/cupertino_gallery/lib/widgets/radio_page.dart @@ -17,7 +17,7 @@ class _RadioPageState extends State { child: Center( child: RadioGroup( groupValue: _selectedValue, - onChanged: (int? value) { + onChanged: (value) { setState(() { _selectedValue = value!; }); diff --git a/cupertino_gallery/lib/widgets/scrollbar_page.dart b/cupertino_gallery/lib/widgets/scrollbar_page.dart index fdecb34cba6..cf9e67582e5 100644 --- a/cupertino_gallery/lib/widgets/scrollbar_page.dart +++ b/cupertino_gallery/lib/widgets/scrollbar_page.dart @@ -13,10 +13,10 @@ class ScrollbarPage extends StatelessWidget { child: ListView.separated( controller: controller, itemCount: 100, - itemBuilder: (BuildContext context, int index) { + itemBuilder: (context, index) { return CupertinoListTile(title: Text('Item $index')); }, - separatorBuilder: (BuildContext context, int index) { + separatorBuilder: (context, index) { return Container(height: 1, color: CupertinoColors.opaqueSeparator); }, ), diff --git a/cupertino_gallery/lib/widgets/segmented_control_page.dart b/cupertino_gallery/lib/widgets/segmented_control_page.dart index 614ca44b211..4e344d608d6 100644 --- a/cupertino_gallery/lib/widgets/segmented_control_page.dart +++ b/cupertino_gallery/lib/widgets/segmented_control_page.dart @@ -23,7 +23,7 @@ class _SegmentedControlPageState extends State { 1: Text('Two'), 2: Text('Three'), }, - onValueChanged: (int val) { + onValueChanged: (val) { setState(() { _selectedIndex = val; }); diff --git a/cupertino_gallery/lib/widgets/sheet_page.dart b/cupertino_gallery/lib/widgets/sheet_page.dart index 103d1bdcc30..1e977a82c2e 100644 --- a/cupertino_gallery/lib/widgets/sheet_page.dart +++ b/cupertino_gallery/lib/widgets/sheet_page.dart @@ -13,20 +13,21 @@ class SheetPage extends StatelessWidget { onPressed: () { Navigator.of(context).push( CupertinoSheetRoute( - builder: (BuildContext context) { - return CupertinoPageScaffold( - navigationBar: CupertinoNavigationBar( - middle: const Text('Sheet'), - trailing: GestureDetector( - child: const Icon(CupertinoIcons.xmark), - onTap: () { - Navigator.of(context).pop(); - }, - ), - ), - child: const Center(child: Text('This is a sheet')), - ); - }, + scrollableBuilder: + (context, controller) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: const Text('Sheet'), + trailing: GestureDetector( + child: const Icon(CupertinoIcons.xmark), + onTap: () { + Navigator.of(context).pop(); + }, + ), + ), + child: const Center(child: Text('This is a sheet')), + ); + }, ), ); }, diff --git a/cupertino_gallery/lib/widgets/slider_page.dart b/cupertino_gallery/lib/widgets/slider_page.dart index 38536b1592d..0ed332e7383 100644 --- a/cupertino_gallery/lib/widgets/slider_page.dart +++ b/cupertino_gallery/lib/widgets/slider_page.dart @@ -17,7 +17,7 @@ class _SliderPageState extends State { child: Center( child: CupertinoSlider( value: _value, - onChanged: (double value) { + onChanged: (value) { setState(() { _value = value; }); diff --git a/cupertino_gallery/lib/widgets/sliding_segmented_control_page.dart b/cupertino_gallery/lib/widgets/sliding_segmented_control_page.dart index 528c1512cea..11f97fd3484 100644 --- a/cupertino_gallery/lib/widgets/sliding_segmented_control_page.dart +++ b/cupertino_gallery/lib/widgets/sliding_segmented_control_page.dart @@ -25,7 +25,7 @@ class _SlidingSegmentedControlPageState 1: Text('Two'), 2: Text('Three'), }, - onValueChanged: (int? value) { + onValueChanged: (value) { setState(() { _groupValue = value; }); diff --git a/cupertino_gallery/lib/widgets/switch_page.dart b/cupertino_gallery/lib/widgets/switch_page.dart index d0ffb8c8b09..6ebb66a5c31 100644 --- a/cupertino_gallery/lib/widgets/switch_page.dart +++ b/cupertino_gallery/lib/widgets/switch_page.dart @@ -17,7 +17,7 @@ class _SwitchPageState extends State { child: Center( child: CupertinoSwitch( value: _value, - onChanged: (bool value) { + onChanged: (value) { setState(() { _value = value; }); diff --git a/cupertino_gallery/lib/widgets/time_picker_page.dart b/cupertino_gallery/lib/widgets/time_picker_page.dart index 0b69ee276d9..f50ca14727d 100644 --- a/cupertino_gallery/lib/widgets/time_picker_page.dart +++ b/cupertino_gallery/lib/widgets/time_picker_page.dart @@ -11,7 +11,7 @@ class TimePickerPage extends StatelessWidget { child: SizedBox( height: 200, child: CupertinoTimerPicker( - onTimerDurationChanged: (Duration newDuration) {}, + onTimerDurationChanged: (newDuration) {}, ), ), ), diff --git a/cupertino_gallery/lib/widgets_page.dart b/cupertino_gallery/lib/widgets_page.dart index 3c338299b6c..af5d5ad12ee 100644 --- a/cupertino_gallery/lib/widgets_page.dart +++ b/cupertino_gallery/lib/widgets_page.dart @@ -54,7 +54,7 @@ class CustomCupertinoListTile extends StatelessWidget { onTap: () { Navigator.of(context).push( CupertinoPageRoute( - builder: (BuildContext context) { + builder: (context) { return WidgetDetailPage(title: title); }, ), diff --git a/date_planner/analysis_options.yaml b/date_planner/analysis_options.yaml index 0d2902135ca..ee406c27d8a 100644 --- a/date_planner/analysis_options.yaml +++ b/date_planner/analysis_options.yaml @@ -1,28 +1,14 @@ -# 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 +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.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.dev/lints. - # - # 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 + sort_pub_dependencies: true diff --git a/date_planner/lib/event_detail.dart b/date_planner/lib/event_detail.dart index 6407d65015b..b14453095c4 100644 --- a/date_planner/lib/event_detail.dart +++ b/date_planner/lib/event_detail.dart @@ -88,7 +88,8 @@ class _EventDetailState extends State { onChanged: (value) => event.title = value, ), ), - if (!widget.isEditing) Text(event.title, style: titleStyle), + if (!widget.isEditing) + Text(event.title, style: titleStyle), ], ), const SizedBox(height: 12), diff --git a/date_planner/lib/event_list.dart b/date_planner/lib/event_list.dart index 1ecdeb1bc5f..02635053895 100644 --- a/date_planner/lib/event_list.dart +++ b/date_planner/lib/event_list.dart @@ -16,7 +16,7 @@ class EventList extends StatelessWidget { @override Widget build(BuildContext context) { return Consumer( - builder: (BuildContext context, EventData events, Widget? child) { + builder: (context, events, child) { return CupertinoPageScaffold( // TODO(mit-mit): Avoid having to pass nav bar manually. // diff --git a/date_planner/pubspec.yaml b/date_planner/pubspec.yaml index 4b9309fa040..b06a2044df6 100644 --- a/date_planner/pubspec.yaml +++ b/date_planner/pubspec.yaml @@ -8,9 +8,9 @@ environment: sdk: ^3.9.0-0 dependencies: + cupertino_icons: ^1.0.8 flutter: sdk: flutter - cupertino_icons: ^1.0.8 intl: provider: uuid: diff --git a/desktop_photo_search/fluent_ui/analysis_options.yaml b/desktop_photo_search/fluent_ui/analysis_options.yaml index f6bfd9b6140..2deed08e080 100644 --- a/desktop_photo_search/fluent_ui/analysis_options.yaml +++ b/desktop_photo_search/fluent_ui/analysis_options.yaml @@ -1,4 +1,13 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../analysis_options.yaml linter: rules: diff --git a/desktop_photo_search/material/analysis_options.yaml b/desktop_photo_search/material/analysis_options.yaml index f6bfd9b6140..2deed08e080 100644 --- a/desktop_photo_search/material/analysis_options.yaml +++ b/desktop_photo_search/material/analysis_options.yaml @@ -1,4 +1,13 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../analysis_options.yaml linter: rules: diff --git a/dynamic_theme/analysis_options.yaml b/dynamic_theme/analysis_options.yaml index 0d2902135ca..d770e9ca628 100644 --- a/dynamic_theme/analysis_options.yaml +++ b/dynamic_theme/analysis_options.yaml @@ -1,28 +1,10 @@ -# 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.dev/lints. - # - # 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 +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/dynamic_theme/lib/main.dart b/dynamic_theme/lib/main.dart index b61f2855bc6..39dfd0fcf06 100644 --- a/dynamic_theme/lib/main.dart +++ b/dynamic_theme/lib/main.dart @@ -79,7 +79,7 @@ class _GenerativeAISampleState extends State { _ => ApiKeyWidget( title: widget.title, onSubmitted: (key) { - setState(() => apiKey = key); + setState(() => apiKey = key as String); }, ), }, @@ -166,7 +166,9 @@ class _ExampleState extends State { try { final prompt = StringBuffer(); prompt.writeln(message); - final response = await callWithActions([Content.text(prompt.toString())]); + final response = await callWithActions([ + Content.text(prompt.toString()), + ]); if (response.text != null) { addMessage(Sender.system, response.text!); } else { @@ -209,7 +211,6 @@ class _ExampleState extends State { }), ); } - break; case 'change_theme_mode': final mode = args['mode'] as String; themeMode.value = switch (mode) { @@ -224,7 +225,6 @@ class _ExampleState extends State { 'message': 'theme mode updated', }), ); - break; case 'change_text_scale_factor': final value = args['scale'] as num; textScaleFactor.value = value.toDouble(); @@ -234,7 +234,6 @@ class _ExampleState extends State { 'message': 'font scale updated', }), ); - break; default: } } diff --git a/form_app/analysis_options.yaml b/form_app/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/form_app/analysis_options.yaml +++ b/form_app/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/google_maps/analysis_options.yaml b/google_maps/analysis_options.yaml index eb3cb890b8b..1347e6dd86a 100644 --- a/google_maps/analysis_options.yaml +++ b/google_maps/analysis_options.yaml @@ -1,5 +1,12 @@ -include: package:analysis_defaults/flutter.yaml +include: ../analysis_options.yaml analyzer: - exclude: + exclude: - lib/src/*.g.dart + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** diff --git a/ios_app_clip/analysis_options.yaml b/ios_app_clip/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/ios_app_clip/analysis_options.yaml +++ b/ios_app_clip/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/material_3_demo/analysis_options.yaml b/material_3_demo/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/material_3_demo/analysis_options.yaml +++ b/material_3_demo/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/navigation_and_routing/analysis_options.yaml b/navigation_and_routing/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/navigation_and_routing/analysis_options.yaml +++ b/navigation_and_routing/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/pedometer/analysis_options.yaml b/pedometer/analysis_options.yaml index a5744c1cfbe..7887423dbe3 100644 --- a/pedometer/analysis_options.yaml +++ b/pedometer/analysis_options.yaml @@ -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/** diff --git a/pedometer/example/analysis_options.yaml b/pedometer/example/analysis_options.yaml index 61b6c4de17c..a96029588a0 100644 --- a/pedometer/example/analysis_options.yaml +++ b/pedometer/example/analysis_options.yaml @@ -1,29 +1,10 @@ -# 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 +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../../analysis_options.yaml diff --git a/pedometer/example/lib/main.dart b/pedometer/example/lib/main.dart index 00ea267eee8..6e184338cb2 100644 --- a/pedometer/example/lib/main.dart +++ b/pedometer/example/lib/main.dart @@ -54,7 +54,7 @@ class _HomeState extends State { super.initState(); } - void runPedometer() async { + Future runPedometer() async { final now = DateTime.now(); hourlySteps = await StepsRepo.instance.getSteps(); lastUpdated = now; diff --git a/pedometer/example/lib/steps_repo.dart b/pedometer/example/lib/steps_repo.dart index bd8db966a36..0ad24d12ab5 100644 --- a/pedometer/example/lib/steps_repo.dart +++ b/pedometer/example/lib/steps_repo.dart @@ -90,6 +90,7 @@ class _IOSStepsRepo implements StepsRepo { return []; } + // ignore: inference_failure_on_collection_literal final handlers = []; final futures = >[]; final now = DateTime.now(); @@ -102,8 +103,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; diff --git a/pedometer/lib/health_connect.dart b/pedometer/lib/health_connect.dart index 653e0d0b5da..6e91e6bc914 100644 --- a/pedometer/lib/health_connect.dart +++ b/pedometer/lib/health_connect.dart @@ -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 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 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 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 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 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 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 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?>( - const jni$_.JSetNullableType(jni$_.JStringNullableType()), + const jni$_.JSetNullableType( + 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? getParcelableArrayExtra(jni$_.JString? string) { + jni$_.JArray? 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$_.JArrayNullableType<$T?>(T.nullableType)); + ).object?>( + 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(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(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> { @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(); diff --git a/pedometer/lib/pedometer_bindings_generated.dart b/pedometer/lib/pedometer_bindings_generated.dart index 91c38f28a23..c79501c0cc9 100644 --- a/pedometer/lib/pedometer_bindings_generated.dart +++ b/pedometer/lib/pedometer_bindings_generated.dart @@ -17,7 +17,8 @@ class PedometerBindings { /// The symbols are looked up with [lookup]. PedometerBindings.fromLookup( - ffi.Pointer Function(String symbolName) lookup, + ffi.Pointer Function(String symbolName) + lookup, ) : _lookup = lookup; ffi.Pointer _registerName1(String name) { @@ -33,7 +34,9 @@ class PedometerBindings { late final __sel_registerNamePtr = _lookup< - ffi.NativeFunction Function(ffi.Pointer)> + ffi.NativeFunction< + ffi.Pointer Function(ffi.Pointer) + > >('sel_registerName'); late final __sel_registerName = __sel_registerNamePtr .asFunction Function(ffi.Pointer)>(); @@ -424,7 +427,10 @@ class PedometerBindings { late final _sel_frameLength1 = _registerName1("frameLength"); late final _sel_isOneway1 = _registerName1("isOneway"); - bool _objc_msgSend_12(ffi.Pointer obj, ffi.Pointer sel) { + bool _objc_msgSend_12( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_12(obj, sel); } @@ -2592,9 +2598,10 @@ class PedometerBindings { late final _objc_releaseFinalizer11 = ffi.NativeFinalizer( __Block_releasePtr.cast(), ); - late final _sel_setUserInfoValueProviderForDomain_provider_1 = _registerName1( - "setUserInfoValueProviderForDomain:provider:", - ); + late final _sel_setUserInfoValueProviderForDomain_provider_1 = + _registerName1( + "setUserInfoValueProviderForDomain:provider:", + ); void _objc_msgSend_78( ffi.Pointer obj, ffi.Pointer sel, @@ -3073,9 +3080,10 @@ class PedometerBindings { ) >(); - late final _sel_enumerateIndexesInRange_options_usingBlock_1 = _registerName1( - "enumerateIndexesInRange:options:usingBlock:", - ); + late final _sel_enumerateIndexesInRange_options_usingBlock_1 = + _registerName1( + "enumerateIndexesInRange:options:usingBlock:", + ); void _objc_msgSend_93( ffi.Pointer obj, ffi.Pointer sel, @@ -3594,9 +3602,10 @@ class PedometerBindings { ) >(); - late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = _registerName1( - "indexOfObjectAtIndexes:options:passingTest:", - ); + late final _sel_indexOfObjectAtIndexes_options_passingTest_1 = + _registerName1( + "indexOfObjectAtIndexes:options:passingTest:", + ); int _objc_msgSend_109( ffi.Pointer obj, ffi.Pointer sel, @@ -4276,7 +4285,9 @@ class PedometerBindings { >(); late final _sel_removeObserver_fromObjectsAtIndexes_forKeyPath_context_1 = - _registerName1("removeObserver:fromObjectsAtIndexes:forKeyPath:context:"); + _registerName1( + "removeObserver:fromObjectsAtIndexes:forKeyPath:context:", + ); void _objc_msgSend_129( ffi.Pointer obj, ffi.Pointer sel, @@ -5201,7 +5212,10 @@ class PedometerBindings { >(); late final _sel_fileSize1 = _registerName1("fileSize"); - int _objc_msgSend_156(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_156( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_156(obj, sel); } @@ -5563,7 +5577,10 @@ class PedometerBindings { ); late final _sel_fileExtensionHidden1 = _registerName1("fileExtensionHidden"); late final _sel_fileHFSCreatorCode1 = _registerName1("fileHFSCreatorCode"); - int _objc_msgSend_166(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_166( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_166(obj, sel); } @@ -6116,7 +6133,10 @@ class PedometerBindings { "initWithUnsignedInteger:", ); late final _sel_charValue1 = _registerName1("charValue"); - int _objc_msgSend_185(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_185( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_185(obj, sel); } @@ -6132,7 +6152,10 @@ class PedometerBindings { >(); late final _sel_unsignedCharValue1 = _registerName1("unsignedCharValue"); - int _objc_msgSend_186(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_186( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_186(obj, sel); } @@ -6151,7 +6174,10 @@ class PedometerBindings { >(); late final _sel_shortValue1 = _registerName1("shortValue"); - int _objc_msgSend_187(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_187( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_187(obj, sel); } @@ -6167,7 +6193,10 @@ class PedometerBindings { >(); late final _sel_unsignedShortValue1 = _registerName1("unsignedShortValue"); - int _objc_msgSend_188(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_188( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_188(obj, sel); } @@ -6186,7 +6215,10 @@ class PedometerBindings { >(); late final _sel_intValue1 = _registerName1("intValue"); - int _objc_msgSend_189(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_189( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_189(obj, sel); } @@ -6205,7 +6237,10 @@ class PedometerBindings { late final _sel_longValue1 = _registerName1("longValue"); late final _sel_unsignedLongValue1 = _registerName1("unsignedLongValue"); late final _sel_longLongValue1 = _registerName1("longLongValue"); - int _objc_msgSend_190(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_190( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_190(obj, sel); } @@ -6780,9 +6815,10 @@ class PedometerBindings { ) >(); - late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = _registerName1( - "URLByResolvingAliasFileAtURL:options:error:", - ); + late final _sel_URLByResolvingAliasFileAtURL_options_error_1 = + _registerName1( + "URLByResolvingAliasFileAtURL:options:error:", + ); instancetype _objc_msgSend_205( ffi.Pointer obj, ffi.Pointer sel, @@ -6858,9 +6894,10 @@ class PedometerBindings { ) >(); - late final _sel_checkPromisedItemIsReachableAndReturnError_1 = _registerName1( - "checkPromisedItemIsReachableAndReturnError:", - ); + late final _sel_checkPromisedItemIsReachableAndReturnError_1 = + _registerName1( + "checkPromisedItemIsReachableAndReturnError:", + ); bool _objc_msgSend_207( ffi.Pointer obj, ffi.Pointer sel, @@ -7032,9 +7069,10 @@ class PedometerBindings { ) >(); - late final _sel_loadResourceDataNotifyingClient_usingCache_1 = _registerName1( - "loadResourceDataNotifyingClient:usingCache:", - ); + late final _sel_loadResourceDataNotifyingClient_usingCache_1 = + _registerName1( + "loadResourceDataNotifyingClient:usingCache:", + ); void _objc_msgSend_212( ffi.Pointer obj, ffi.Pointer sel, @@ -8788,9 +8826,10 @@ class PedometerBindings { ) >(); - late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = _registerName1( - "decodeTopLevelObjectOfClasses:forKey:error:", - ); + late final _sel_decodeTopLevelObjectOfClasses_forKey_error_1 = + _registerName1( + "decodeTopLevelObjectOfClasses:forKey:error:", + ); ffi.Pointer _objc_msgSend_262( ffi.Pointer obj, ffi.Pointer sel, @@ -8953,7 +8992,10 @@ class PedometerBindings { late final _sel_decodingFailurePolicy1 = _registerName1( "decodingFailurePolicy", ); - int _objc_msgSend_267(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_267( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_267(obj, sel); } @@ -9156,7 +9198,13 @@ class PedometerBindings { int mask, _NSRange rangeOfReceiverToCompare, ) { - return __objc_msgSend_274(obj, sel, string, mask, rangeOfReceiverToCompare); + return __objc_msgSend_274( + obj, + sel, + string, + mask, + rangeOfReceiverToCompare, + ); } late final __objc_msgSend_274Ptr = @@ -10665,9 +10713,10 @@ class PedometerBindings { >(); late final _sel_lineRangeForRange_1 = _registerName1("lineRangeForRange:"); - late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = _registerName1( - "getParagraphStart:end:contentsEnd:forRange:", - ); + late final _sel_getParagraphStart_end_contentsEnd_forRange_1 = + _registerName1( + "getParagraphStart:end:contentsEnd:forRange:", + ); late final _sel_paragraphRangeForRange_1 = _registerName1( "paragraphRangeForRange:", ); @@ -12096,9 +12145,10 @@ class PedometerBindings { ) >(); - late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = _registerName1( - "stringWithContentsOfURL:usedEncoding:error:", - ); + late final _sel_stringWithContentsOfURL_usedEncoding_error_1 = + _registerName1( + "stringWithContentsOfURL:usedEncoding:error:", + ); late final _sel_stringWithContentsOfFile_usedEncoding_error_1 = _registerName1("stringWithContentsOfFile:usedEncoding:error:"); late final _sel_stringEncodingForData_encodingOptions_convertedString_usedLossyConversion_1 = @@ -13881,7 +13931,9 @@ class PedometerBindings { >(); late final _sel_getRelationship_ofDirectory_inDomain_toItemAtURL_error_1 = - _registerName1("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"); + _registerName1( + "getRelationship:ofDirectory:inDomain:toItemAtURL:error:", + ); bool _objc_msgSend_394( ffi.Pointer obj, ffi.Pointer sel, @@ -15395,9 +15447,10 @@ class PedometerBindings { ) >(); - late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = _registerName1( - "replaceObjectsInRange:withObjectsFromArray:", - ); + late final _sel_replaceObjectsInRange_withObjectsFromArray_1 = + _registerName1( + "replaceObjectsInRange:withObjectsFromArray:", + ); void _objc_msgSend_435( ffi.Pointer obj, ffi.Pointer sel, @@ -16675,7 +16728,9 @@ class PedometerBindings { "initRequiringSecureCoding:", ); late final _sel_archivedDataWithRootObject_requiringSecureCoding_error_1 = - _registerName1("archivedDataWithRootObject:requiringSecureCoding:error:"); + _registerName1( + "archivedDataWithRootObject:requiringSecureCoding:error:", + ); ffi.Pointer _objc_msgSend_471( ffi.Pointer obj, ffi.Pointer sel, @@ -16945,7 +17000,10 @@ class PedometerBindings { "archiveRootObject:toFile:", ); late final _sel_outputFormat1 = _registerName1("outputFormat"); - int _objc_msgSend_479(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_479( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_479(obj, sel); } @@ -17536,7 +17594,10 @@ class PedometerBindings { >(); late final _sel_qualityOfService1 = _registerName1("qualityOfService"); - int _objc_msgSend_499(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_499( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_499(obj, sel); } @@ -17995,7 +18056,10 @@ class PedometerBindings { >(); late final _sel_totalUnitCount1 = _registerName1("totalUnitCount"); - int _objc_msgSend_513(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_513( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_513(obj, sel); } @@ -19325,7 +19389,9 @@ class PedometerBindings { >(); late final _sel_URLForResource_withExtension_subdirectory_localization_1 = - _registerName1("URLForResource:withExtension:subdirectory:localization:"); + _registerName1( + "URLForResource:withExtension:subdirectory:localization:", + ); ffi.Pointer _objc_msgSend_550( ffi.Pointer obj, ffi.Pointer sel, @@ -19362,9 +19428,10 @@ class PedometerBindings { ) >(); - late final _sel_URLsForResourcesWithExtension_subdirectory_1 = _registerName1( - "URLsForResourcesWithExtension:subdirectory:", - ); + late final _sel_URLsForResourcesWithExtension_subdirectory_1 = + _registerName1( + "URLsForResourcesWithExtension:subdirectory:", + ); ffi.Pointer _objc_msgSend_551( ffi.Pointer obj, ffi.Pointer sel, @@ -19999,7 +20066,10 @@ class PedometerBindings { "setAllowsExtendedAttributes:", ); late final _sel_interpretedSyntax1 = _registerName1("interpretedSyntax"); - int _objc_msgSend_569(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_569( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_569(obj, sel); } @@ -20041,7 +20111,10 @@ class PedometerBindings { >(); late final _sel_failurePolicy1 = _registerName1("failurePolicy"); - int _objc_msgSend_571(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_571( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_571(obj, sel); } @@ -20999,7 +21072,9 @@ class PedometerBindings { >(); late final _sel_isPartialStringValid_newEditingString_errorDescription_1 = - _registerName1("isPartialStringValid:newEditingString:errorDescription:"); + _registerName1( + "isPartialStringValid:newEditingString:errorDescription:", + ); bool _objc_msgSend_598( ffi.Pointer obj, ffi.Pointer sel, @@ -21085,7 +21160,10 @@ class PedometerBindings { >(); late final _sel_formattingContext1 = _registerName1("formattingContext"); - int _objc_msgSend_600(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_600( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_600(obj, sel); } @@ -21295,7 +21373,10 @@ class PedometerBindings { late final _sel_defaultFormatterBehavior1 = _registerName1( "defaultFormatterBehavior", ); - int _objc_msgSend_607(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_607( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_607(obj, sel); } @@ -21342,7 +21423,10 @@ class PedometerBindings { late final _sel_dateFormat1 = _registerName1("dateFormat"); late final _sel_setDateFormat_1 = _registerName1("setDateFormat:"); late final _sel_dateStyle1 = _registerName1("dateStyle"); - int _objc_msgSend_609(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_609( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_609(obj, sel); } @@ -22874,7 +22958,9 @@ class PedometerBindings { >(); late final _sel_components_fromDateComponents_toDateComponents_options_1 = - _registerName1("components:fromDateComponents:toDateComponents:options:"); + _registerName1( + "components:fromDateComponents:toDateComponents:options:", + ); ffi.Pointer _objc_msgSend_651( ffi.Pointer obj, ffi.Pointer sel, @@ -23437,7 +23523,10 @@ class PedometerBindings { ) >(); - int _objc_msgSend_665(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_665( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_665(obj, sel); } @@ -23476,7 +23565,10 @@ class PedometerBindings { >(); late final _sel_numberStyle1 = _registerName1("numberStyle"); - int _objc_msgSend_667(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_667( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_667(obj, sel); } @@ -23706,7 +23798,10 @@ class PedometerBindings { "setPaddingCharacter:", ); late final _sel_paddingPosition1 = _registerName1("paddingPosition"); - int _objc_msgSend_671(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_671( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_671(obj, sel); } @@ -23746,7 +23841,10 @@ class PedometerBindings { >(); late final _sel_roundingMode1 = _registerName1("roundingMode"); - int _objc_msgSend_673(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_673( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_673(obj, sel); } @@ -24680,7 +24778,9 @@ class PedometerBindings { late final _sel_scheduledTimerWithTimeInterval_invocation_repeats_1 = _registerName1("scheduledTimerWithTimeInterval:invocation:repeats:"); late final _sel_timerWithTimeInterval_target_selector_userInfo_repeats_1 = - _registerName1("timerWithTimeInterval:target:selector:userInfo:repeats:"); + _registerName1( + "timerWithTimeInterval:target:selector:userInfo:repeats:", + ); ffi.Pointer _objc_msgSend_700( ffi.Pointer obj, ffi.Pointer sel, @@ -26019,7 +26119,10 @@ class PedometerBindings { >(); late final _sel_cookieAcceptPolicy1 = _registerName1("cookieAcceptPolicy"); - int _objc_msgSend_737(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_737( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_737(obj, sel); } @@ -26097,9 +26200,10 @@ class PedometerBindings { late final _sel_supportsSecureCoding1 = _registerName1( "supportsSecureCoding", ); - late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = _registerName1( - "requestWithURL:cachePolicy:timeoutInterval:", - ); + late final _sel_requestWithURL_cachePolicy_timeoutInterval_1 = + _registerName1( + "requestWithURL:cachePolicy:timeoutInterval:", + ); instancetype _objc_msgSend_740( ffi.Pointer obj, ffi.Pointer sel, @@ -26138,7 +26242,10 @@ class PedometerBindings { ); late final _sel_URL1 = _registerName1("URL"); late final _sel_cachePolicy1 = _registerName1("cachePolicy"); - int _objc_msgSend_741(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_741( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_741(obj, sel); } @@ -26156,7 +26263,10 @@ class PedometerBindings { late final _sel_timeoutInterval1 = _registerName1("timeoutInterval"); late final _sel_mainDocumentURL1 = _registerName1("mainDocumentURL"); late final _sel_networkServiceType1 = _registerName1("networkServiceType"); - int _objc_msgSend_742(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_742( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_742(obj, sel); } @@ -26182,7 +26292,10 @@ class PedometerBindings { ); late final _sel_assumesHTTP3Capable1 = _registerName1("assumesHTTP3Capable"); late final _sel_attribution1 = _registerName1("attribution"); - int _objc_msgSend_743(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_743( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_743(obj, sel); } @@ -26241,7 +26354,10 @@ class PedometerBindings { >(); late final _sel_streamStatus1 = _registerName1("streamStatus"); - int _objc_msgSend_745(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_745( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_745(obj, sel); } @@ -26371,7 +26487,9 @@ class PedometerBindings { "outputStreamWithURL:append:", ); late final _sel_getStreamsToHostWithName_port_inputStream_outputStream_1 = - _registerName1("getStreamsToHostWithName:port:inputStream:outputStream:"); + _registerName1( + "getStreamsToHostWithName:port:inputStream:outputStream:", + ); void _objc_msgSend_749( ffi.Pointer obj, ffi.Pointer sel, @@ -26455,7 +26573,9 @@ class PedometerBindings { >(); late final _sel_getBoundStreamsWithBufferSize_inputStream_outputStream_1 = - _registerName1("getBoundStreamsWithBufferSize:inputStream:outputStream:"); + _registerName1( + "getBoundStreamsWithBufferSize:inputStream:outputStream:", + ); void _objc_msgSend_751( ffi.Pointer obj, ffi.Pointer sel, @@ -26740,7 +26860,10 @@ class PedometerBindings { late final _sel_taskDescription1 = _registerName1("taskDescription"); late final _sel_setTaskDescription_1 = _registerName1("setTaskDescription:"); late final _sel_state1 = _registerName1("state"); - int _objc_msgSend_759(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_759( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_759(obj, sel); } @@ -27067,7 +27190,10 @@ class PedometerBindings { ); late final _class_NSMorphology1 = _getClass1("NSMorphology"); late final _sel_grammaticalGender1 = _registerName1("grammaticalGender"); - int _objc_msgSend_770(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_770( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_770(obj, sel); } @@ -27109,7 +27235,10 @@ class PedometerBindings { >(); late final _sel_partOfSpeech1 = _registerName1("partOfSpeech"); - int _objc_msgSend_772(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_772( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_772(obj, sel); } @@ -27149,7 +27278,10 @@ class PedometerBindings { >(); late final _sel_number1 = _registerName1("number"); - int _objc_msgSend_774(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_774( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_774(obj, sel); } @@ -27189,7 +27321,10 @@ class PedometerBindings { >(); late final _sel_grammaticalCase1 = _registerName1("grammaticalCase"); - int _objc_msgSend_776(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_776( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_776(obj, sel); } @@ -27229,7 +27364,10 @@ class PedometerBindings { >(); late final _sel_determination1 = _registerName1("determination"); - int _objc_msgSend_778(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_778( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_778(obj, sel); } @@ -27269,7 +27407,10 @@ class PedometerBindings { >(); late final _sel_grammaticalPerson1 = _registerName1("grammaticalPerson"); - int _objc_msgSend_780(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_780( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_780(obj, sel); } @@ -27311,7 +27452,10 @@ class PedometerBindings { >(); late final _sel_pronounType1 = _registerName1("pronounType"); - int _objc_msgSend_782(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_782( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_782(obj, sel); } @@ -27351,7 +27495,10 @@ class PedometerBindings { >(); late final _sel_definiteness1 = _registerName1("definiteness"); - int _objc_msgSend_784(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_784( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_784(obj, sel); } @@ -27541,7 +27688,10 @@ class PedometerBindings { late final _sel_removeDependency_1 = _registerName1("removeDependency:"); late final _sel_dependencies1 = _registerName1("dependencies"); late final _sel_queuePriority1 = _registerName1("queuePriority"); - int _objc_msgSend_790(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_790( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_790(obj, sel); } @@ -27857,7 +28007,9 @@ class PedometerBindings { ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) > @@ -27971,7 +28123,9 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) > @@ -28036,7 +28190,9 @@ class PedometerBindings { _lookup< ffi.NativeFunction< ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > > Function(ffi.Pointer, ffi.Pointer) > @@ -28081,7 +28237,9 @@ class PedometerBindings { ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) >(); @@ -28219,7 +28377,9 @@ class PedometerBindings { ffi.Void Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) > @@ -28332,7 +28492,9 @@ class PedometerBindings { ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ffi.Bool, ) @@ -28871,7 +29033,10 @@ class PedometerBindings { late final _sel_userName1 = _registerName1("userName"); late final _sel_fullUserName1 = _registerName1("fullUserName"); late final _sel_thermalState1 = _registerName1("thermalState"); - int _objc_msgSend_824(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_824( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_824(obj, sel); } @@ -28893,7 +29058,10 @@ class PedometerBindings { late final _sel_isiOSAppOnMac1 = _registerName1("isiOSAppOnMac"); late final _class_NSTextCheckingResult1 = _getClass1("NSTextCheckingResult"); late final _sel_resultType1 = _registerName1("resultType"); - int _objc_msgSend_825(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_825( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_825(obj, sel); } @@ -28940,9 +29108,10 @@ class PedometerBindings { late final _sel_replacementString1 = _registerName1("replacementString"); late final _sel_alternativeStrings1 = _registerName1("alternativeStrings"); late final _class_NSRegularExpression1 = _getClass1("NSRegularExpression"); - late final _sel_regularExpressionWithPattern_options_error_1 = _registerName1( - "regularExpressionWithPattern:options:error:", - ); + late final _sel_regularExpressionWithPattern_options_error_1 = + _registerName1( + "regularExpressionWithPattern:options:error:", + ); ffi.Pointer _objc_msgSend_827( ffi.Pointer obj, ffi.Pointer sel, @@ -29014,7 +29183,10 @@ class PedometerBindings { late final _sel_pattern1 = _registerName1("pattern"); late final _sel_options1 = _registerName1("options"); - int _objc_msgSend_829(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_829( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_829(obj, sel); } @@ -30020,7 +30192,10 @@ class PedometerBindings { >(); late final _sel_storagePolicy1 = _registerName1("storagePolicy"); - int _objc_msgSend_857(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_857( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_857(obj, sel); } @@ -30494,7 +30669,10 @@ class PedometerBindings { late final _class_NSURLCredential1 = _getClass1("NSURLCredential"); late final _sel_persistence1 = _registerName1("persistence"); - int _objc_msgSend_872(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_872( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_872(obj, sel); } @@ -30786,7 +30964,9 @@ class PedometerBindings { >(); late final _sel_initWithProxyHost_port_type_realm_authenticationMethod_1 = - _registerName1("initWithProxyHost:port:type:realm:authenticationMethod:"); + _registerName1( + "initWithProxyHost:port:type:realm:authenticationMethod:", + ); late final _sel_realm1 = _registerName1("realm"); late final _sel_receivesCredentialSecurely1 = _registerName1( "receivesCredentialSecurely", @@ -31713,7 +31893,10 @@ class PedometerBindings { late final _sel_externalEntityResolvingPolicy1 = _registerName1( "externalEntityResolvingPolicy", ); - int _objc_msgSend_908(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_908( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_908(obj, sel); } @@ -32251,7 +32434,10 @@ class PedometerBindings { late final _sel_TLSMinimumSupportedProtocol1 = _registerName1( "TLSMinimumSupportedProtocol", ); - int _objc_msgSend_922(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_922( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_922(obj, sel); } @@ -32301,7 +32487,10 @@ class PedometerBindings { late final _sel_TLSMinimumSupportedProtocolVersion1 = _registerName1( "TLSMinimumSupportedProtocolVersion", ); - int _objc_msgSend_924(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_924( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_924(obj, sel); } @@ -32575,7 +32764,10 @@ class PedometerBindings { late final _sel_multipathServiceType1 = _registerName1( "multipathServiceType", ); - int _objc_msgSend_933(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_933( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_933(obj, sel); } @@ -33467,7 +33659,10 @@ class PedometerBindings { late final _class_NSURLSessionWebSocketMessage1 = _getClass1( "NSURLSessionWebSocketMessage", ); - int _objc_msgSend_960(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_960( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_960(obj, sel); } @@ -33613,7 +33808,10 @@ class PedometerBindings { "setMaximumMessageSize:", ); late final _sel_closeCode1 = _registerName1("closeCode"); - int _objc_msgSend_965(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_965( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_965(obj, sel); } @@ -33858,9 +34056,10 @@ class PedometerBindings { ) >(); - late final _sel_uploadTaskWithResumeData_completionHandler_1 = _registerName1( - "uploadTaskWithResumeData:completionHandler:", - ); + late final _sel_uploadTaskWithResumeData_completionHandler_1 = + _registerName1( + "uploadTaskWithResumeData:completionHandler:", + ); ffi.Pointer _objc_msgSend_973( ffi.Pointer obj, ffi.Pointer sel, @@ -34003,7 +34202,10 @@ class PedometerBindings { "isPedometerEventTrackingAvailable", ); late final _sel_authorizationStatus1 = _registerName1("authorizationStatus"); - int _objc_msgSend_977(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_977( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_977(obj, sel); } @@ -34100,7 +34302,10 @@ class PedometerBindings { "stopPedometerUpdates", ); late final _class_CMPedometerEvent1 = _getClass1("CMPedometerEvent"); - int _objc_msgSend_980(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_980( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_980(obj, sel); } @@ -34165,7 +34370,10 @@ class PedometerBindings { "regionMonitoringEnabled", ); late final _sel_isRangingAvailable1 = _registerName1("isRangingAvailable"); - int _objc_msgSend_982(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_982( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_982(obj, sel); } @@ -34183,7 +34391,10 @@ class PedometerBindings { late final _sel_accuracyAuthorization1 = _registerName1( "accuracyAuthorization", ); - int _objc_msgSend_983(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_983( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_983(obj, sel); } @@ -34204,7 +34415,10 @@ class PedometerBindings { late final _sel_purpose1 = _registerName1("purpose"); late final _sel_setPurpose_1 = _registerName1("setPurpose:"); late final _sel_activityType1 = _registerName1("activityType"); - int _objc_msgSend_984(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_984( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_984(obj, sel); } @@ -34789,7 +35003,10 @@ class PedometerBindings { late final _sel_headingFilter1 = _registerName1("headingFilter"); late final _sel_setHeadingFilter_1 = _registerName1("setHeadingFilter:"); late final _sel_headingOrientation1 = _registerName1("headingOrientation"); - int _objc_msgSend_997(ffi.Pointer obj, ffi.Pointer sel) { + int _objc_msgSend_997( + ffi.Pointer obj, + ffi.Pointer sel, + ) { return __objc_msgSend_997(obj, sel); } @@ -35847,9 +36064,10 @@ class PedometerBindings { ) >(); - late final _sel_geocodeAddressDictionary_completionHandler_1 = _registerName1( - "geocodeAddressDictionary:completionHandler:", - ); + late final _sel_geocodeAddressDictionary_completionHandler_1 = + _registerName1( + "geocodeAddressDictionary:completionHandler:", + ); void _objc_msgSend_1028( ffi.Pointer obj, ffi.Pointer sel, @@ -36036,7 +36254,9 @@ class PedometerBindings { >(); late final _sel_geocodePostalAddress_preferredLocale_completionHandler_1 = - _registerName1("geocodePostalAddress:preferredLocale:completionHandler:"); + _registerName1( + "geocodePostalAddress:preferredLocale:completionHandler:", + ); void _objc_msgSend_1033( ffi.Pointer obj, ffi.Pointer sel, @@ -37732,7 +37952,11 @@ class NSSet extends NSObject { } bool intersectsSet_(NSSet otherSet) { - return _lib._objc_msgSend_359(_id, _lib._sel_intersectsSet_1, otherSet._id); + return _lib._objc_msgSend_359( + _id, + _lib._sel_intersectsSet_1, + otherSet._id, + ); } bool isEqualToSet_(NSSet otherSet) { @@ -37740,7 +37964,11 @@ class NSSet extends NSObject { } bool isSubsetOfSet_(NSSet otherSet) { - return _lib._objc_msgSend_359(_id, _lib._sel_isSubsetOfSet_1, otherSet._id); + return _lib._objc_msgSend_359( + _id, + _lib._sel_isSubsetOfSet_1, + otherSet._id, + ); } void makeObjectsPerformSelector_(ffi.Pointer aSelector) { @@ -38380,7 +38608,12 @@ class NSString extends NSObject { ffi.Pointer buffer, _NSRange range, ) { - _lib._objc_msgSend_271(_id, _lib._sel_getCharacters_range_1, buffer, range); + _lib._objc_msgSend_271( + _id, + _lib._sel_getCharacters_range_1, + buffer, + range, + ); } int compare_(NSString string) { @@ -38459,7 +38692,11 @@ class NSString extends NSObject { } bool isEqualToString_(NSString aString) { - return _lib._objc_msgSend_56(_id, _lib._sel_isEqualToString_1, aString._id); + return _lib._objc_msgSend_56( + _id, + _lib._sel_isEqualToString_1, + aString._id, + ); } bool hasPrefix_(NSString str) { @@ -39469,7 +39706,10 @@ class NSString extends NSObject { } static NSString string(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSString1, _lib._sel_string1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSString1, + _lib._sel_string1, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -39867,7 +40107,10 @@ class NSString extends NSObject { : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject? stringWithContentsOfURL_(PedometerBindings _lib, NSURL url) { + static NSObject? stringWithContentsOfURL_( + PedometerBindings _lib, + NSURL url, + ) { final _ret = _lib._objc_msgSend_223( _lib._class_NSString1, _lib._sel_stringWithContentsOfURL_1, @@ -40548,15 +40791,30 @@ class NSCoder extends NSObject { } void encodeInt32_forKey_(int value, NSString key) { - _lib._objc_msgSend_244(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); + _lib._objc_msgSend_244( + _id, + _lib._sel_encodeInt32_forKey_1, + value, + key._id, + ); } void encodeInt64_forKey_(int value, NSString key) { - _lib._objc_msgSend_245(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); + _lib._objc_msgSend_245( + _id, + _lib._sel_encodeInt64_forKey_1, + value, + key._id, + ); } void encodeFloat_forKey_(double value, NSString key) { - _lib._objc_msgSend_246(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); + _lib._objc_msgSend_246( + _id, + _lib._sel_encodeFloat_forKey_1, + value, + key._id, + ); } void encodeDouble_forKey_(double value, NSString key) { @@ -40583,7 +40841,11 @@ class NSCoder extends NSObject { } bool containsValueForKey_(NSString key) { - return _lib._objc_msgSend_56(_id, _lib._sel_containsValueForKey_1, key._id); + return _lib._objc_msgSend_56( + _id, + _lib._sel_containsValueForKey_1, + key._id, + ); } NSObject? decodeObjectForKey_(NSString key) { @@ -41942,7 +42204,10 @@ class NSURL extends NSObject { : NSURL._(_ret, _lib, retain: true, release: true); } - NSURL initWithDataRepresentation_relativeToURL_(NSData data, NSURL? baseURL) { + NSURL initWithDataRepresentation_relativeToURL_( + NSData data, + NSURL? baseURL, + ) { final _ret = _lib._objc_msgSend_41( _id, _lib._sel_initWithDataRepresentation_relativeToURL_1, @@ -42828,7 +43093,11 @@ class NSNumber extends NSValue { } NSNumber initWithDouble_(double value) { - final _ret = _lib._objc_msgSend_183(_id, _lib._sel_initWithDouble_1, value); + final _ret = _lib._objc_msgSend_183( + _id, + _lib._sel_initWithDouble_1, + value, + ); return NSNumber._(_ret, _lib, retain: true, release: true); } @@ -42929,7 +43198,11 @@ class NSNumber extends NSValue { } bool isEqualToNumber_(NSNumber number) { - return _lib._objc_msgSend_193(_id, _lib._sel_isEqualToNumber_1, number._id); + return _lib._objc_msgSend_193( + _id, + _lib._sel_isEqualToNumber_1, + number._id, + ); } NSString descriptionWithLocale_(NSObject? locale) { @@ -43752,7 +44025,10 @@ class NSArray extends NSObject { } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_69(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_69( + _id, + _lib._sel_reverseObjectEnumerator1, + ); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -44633,7 +44909,8 @@ class NSError extends NSObject { ); } - static ObjCBlock_ObjCObject_NSError_NSString? userInfoValueProviderForDomain_( + static ObjCBlock_ObjCObject_NSError_NSString? + userInfoValueProviderForDomain_( PedometerBindings _lib, NSError err, NSString userInfoKey, @@ -45131,7 +45408,11 @@ class NSIndexSet extends NSObject { } int indexGreaterThanIndex_(int value) { - return _lib._objc_msgSend_86(_id, _lib._sel_indexGreaterThanIndex_1, value); + return _lib._objc_msgSend_86( + _id, + _lib._sel_indexGreaterThanIndex_1, + value, + ); } int indexLessThanIndex_(int value) { @@ -45169,7 +45450,11 @@ class NSIndexSet extends NSObject { } int countOfIndexesInRange_(_NSRange range) { - return _lib._objc_msgSend_88(_id, _lib._sel_countOfIndexesInRange_1, range); + return _lib._objc_msgSend_88( + _id, + _lib._sel_countOfIndexesInRange_1, + range, + ); } bool containsIndex_(int value) { @@ -45688,7 +45973,10 @@ class ObjCBlock_bool_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.UnsignedLong, ffi.Pointer, ) - >(_ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, false) + >( + _ObjCBlock_bool_ffiUnsignedLong_bool_fnPtrTrampoline, + false, + ) .cast(), ptr.cast(), ), @@ -45767,10 +46055,11 @@ void _ObjCBlock_ffiVoid_NSRange_bool_closureTrampoline( ffi.Pointer<_ObjCBlock> block, _NSRange arg0, ffi.Pointer arg1, -) => _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target.address]!( - arg0, - arg1, -); +) => + _ObjCBlock_ffiVoid_NSRange_bool_closureRegistry[block.ref.target.address]!( + arg0, + arg1, + ); class ObjCBlock_ffiVoid_NSRange_bool extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSRange_bool._( @@ -45909,8 +46198,12 @@ void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( void Function(ffi.Pointer, int, ffi.Pointer) >()(arg0, arg1, arg2); final _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistry = - , int, ffi.Pointer)>{}; -int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; + < + int, + void Function(ffi.Pointer, int, ffi.Pointer) + >{}; +int _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = + 0; ffi.Pointer _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( void Function(ffi.Pointer, int, ffi.Pointer) fn, @@ -45932,7 +46225,8 @@ void _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline( .target .address]!(arg0, arg1, arg2); -class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { +class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool + extends _ObjCBlockBase { ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool._( ffi.Pointer<_ObjCBlock> id, PedometerBindings lib, { @@ -45993,7 +46287,9 @@ class ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool extends _ObjCBlockBase { ffi.UnsignedLong, ffi.Pointer, ) - >(_ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline) + >( + _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_closureTrampoline, + ) .cast(), _ObjCBlock_ffiVoid_ObjCObject_ffiUnsignedLong_bool_registerClosure( ( @@ -46105,7 +46401,10 @@ bool _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_fnPtrTrampoline( bool Function(ffi.Pointer, int, ffi.Pointer) >()(arg0, arg1, arg2); final _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistry = - , int, ffi.Pointer)>{}; + < + int, + bool Function(ffi.Pointer, int, ffi.Pointer) + >{}; int _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_closureRegistryIndex = 0; ffi.Pointer _ObjCBlock_bool_ObjCObject_ffiUnsignedLong_bool_registerClosure( @@ -46393,8 +46692,8 @@ abstract class NSBinarySearchingOptions { /// Options supported by methods that produce difference objects. abstract class NSOrderedCollectionDifferenceCalculationOptions { /// Insertion changes do not store a reference to the inserted object. - static const int NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = - 1; + static const int + NSOrderedCollectionDifferenceCalculationOmitInsertedObjects = 1; /// Insertion changes do not store a reference to the removed object. static const int NSOrderedCollectionDifferenceCalculationOmitRemovedObjects = @@ -46697,7 +46996,10 @@ class NSPredicate extends NSObject { } static NSPredicate new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSPredicate1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSPredicate1, + _lib._sel_new1, + ); return NSPredicate._(_ret, _lib, retain: false, release: true); } @@ -46989,7 +47291,11 @@ class NSDictionary extends NSObject { } NSObject? objectForKey_(NSObject aKey) { - final _ret = _lib._objc_msgSend_16(_id, _lib._sel_objectForKey_1, aKey._id); + final _ret = _lib._objc_msgSend_16( + _id, + _lib._sel_objectForKey_1, + aKey._id, + ); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); @@ -48460,7 +48766,8 @@ abstract class NSURLBookmarkCreationOptions { static const int NSURLBookmarkCreationMinimalBookmark = 512; static const int NSURLBookmarkCreationSuitableForBookmarkFile = 1024; static const int NSURLBookmarkCreationWithSecurityScope = 2048; - static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = 4096; + static const int NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess = + 4096; static const int NSURLBookmarkCreationWithoutImplicitSecurityScope = 536870912; } @@ -48469,7 +48776,8 @@ abstract class NSURLBookmarkResolutionOptions { static const int NSURLBookmarkResolutionWithoutUI = 256; static const int NSURLBookmarkResolutionWithoutMounting = 512; static const int NSURLBookmarkResolutionWithSecurityScope = 1024; - static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = 32768; + static const int NSURLBookmarkResolutionWithoutImplicitStartAccessing = + 32768; } abstract class NSDataWritingOptions { @@ -49067,7 +49375,9 @@ class NSLocale extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - NSString? localizedStringForCalendarIdentifier_(NSString calendarIdentifier) { + NSString? localizedStringForCalendarIdentifier_( + NSString calendarIdentifier, + ) { final _ret = _lib._objc_msgSend_281( _id, _lib._sel_localizedStringForCalendarIdentifier_1, @@ -49140,7 +49450,9 @@ class NSLocale extends NSObject { return NSString._(_ret, _lib, retain: true, release: true); } - NSString? localizedStringForCollatorIdentifier_(NSString collatorIdentifier) { + NSString? localizedStringForCollatorIdentifier_( + NSString collatorIdentifier, + ) { final _ret = _lib._objc_msgSend_281( _id, _lib._sel_localizedStringForCollatorIdentifier_1, @@ -49152,7 +49464,10 @@ class NSLocale extends NSObject { } NSString get quotationBeginDelimiter { - final _ret = _lib._objc_msgSend_21(_id, _lib._sel_quotationBeginDelimiter1); + final _ret = _lib._objc_msgSend_21( + _id, + _lib._sel_quotationBeginDelimiter1, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -49487,7 +49802,12 @@ class NSCharacterSet extends NSObject { /// Returns a [NSCharacterSet] that points to the same underlying object as [other]. static NSCharacterSet castFrom(T other) { - return NSCharacterSet._(other._id, other._lib, retain: true, release: true); + return NSCharacterSet._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSCharacterSet] that wraps the given raw object pointer. @@ -49551,7 +49871,9 @@ class NSCharacterSet extends NSObject { return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet getLowercaseLetterCharacterSet(PedometerBindings _lib) { + static NSCharacterSet getLowercaseLetterCharacterSet( + PedometerBindings _lib, + ) { final _ret = _lib._objc_msgSend_282( _lib._class_NSCharacterSet1, _lib._sel_lowercaseLetterCharacterSet1, @@ -49559,7 +49881,9 @@ class NSCharacterSet extends NSObject { return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet getUppercaseLetterCharacterSet(PedometerBindings _lib) { + static NSCharacterSet getUppercaseLetterCharacterSet( + PedometerBindings _lib, + ) { final _ret = _lib._objc_msgSend_282( _lib._class_NSCharacterSet1, _lib._sel_uppercaseLetterCharacterSet1, @@ -49764,7 +50088,9 @@ class NSCharacterSet extends NSObject { return NSCharacterSet._(_ret, _lib, retain: true, release: true); } - static NSCharacterSet getURLQueryAllowedCharacterSet(PedometerBindings _lib) { + static NSCharacterSet getURLQueryAllowedCharacterSet( + PedometerBindings _lib, + ) { final _ret = _lib._objc_msgSend_282( _lib._class_NSCharacterSet1, _lib._sel_URLQueryAllowedCharacterSet1, @@ -50198,7 +50524,10 @@ void _ObjCBlock_ffiVoid_NSString_bool_closureTrampoline( ffi.Pointer arg0, ffi.Pointer arg1, ) => - _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[block.ref.target.address]!( + _ObjCBlock_ffiVoid_NSString_bool_closureRegistry[block + .ref + .target + .address]!( arg0, arg1, ); @@ -50976,10 +51305,11 @@ bool _ObjCBlock_bool_ObjCObject_bool_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ffi.Pointer arg1, -) => _ObjCBlock_bool_ObjCObject_bool_closureRegistry[block.ref.target.address]!( - arg0, - arg1, -); +) => + _ObjCBlock_bool_ObjCObject_bool_closureRegistry[block.ref.target.address]!( + arg0, + arg1, + ); class ObjCBlock_bool_ObjCObject_bool extends _ObjCBlockBase { ObjCBlock_bool_ObjCObject_bool._( @@ -52108,7 +52438,9 @@ void _ObjCBlock_ffiVoid_NSError_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSError_closureRegistry = )>{}; @@ -52124,8 +52456,9 @@ ffi.Pointer _ObjCBlock_ffiVoid_NSError_registerClosure( void _ObjCBlock_ffiVoid_NSError_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, -) => - _ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address]!(arg0); +) => _ObjCBlock_ffiVoid_NSError_closureRegistry[block.ref.target.address]!( + arg0, +); class ObjCBlock_ffiVoid_NSError extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSError._( @@ -52619,7 +52952,12 @@ class NSMutableArray extends NSArray { /// Returns a [NSMutableArray] that points to the same underlying object as [other]. static NSMutableArray castFrom(T other) { - return NSMutableArray._(other._id, other._lib, retain: true, release: true); + return NSMutableArray._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSMutableArray] that wraps the given raw object pointer. @@ -53026,7 +53364,10 @@ class NSMutableArray extends NSArray { return NSMutableArray._(_ret, _lib, retain: true, release: true); } - static NSMutableArray arrayWithArray_(PedometerBindings _lib, NSArray array) { + static NSMutableArray arrayWithArray_( + PedometerBindings _lib, + NSArray array, + ) { final _ret = _lib._objc_msgSend_117( _lib._class_NSMutableArray1, _lib._sel_arrayWithArray_1, @@ -54013,7 +54354,10 @@ class NSOrderedSet extends NSObject { } NSEnumerator reverseObjectEnumerator() { - final _ret = _lib._objc_msgSend_69(_id, _lib._sel_reverseObjectEnumerator1); + final _ret = _lib._objc_msgSend_69( + _id, + _lib._sel_reverseObjectEnumerator1, + ); return NSEnumerator._(_ret, _lib, retain: true, release: true); } @@ -55237,17 +55581,32 @@ class NSKeyedArchiver extends NSCoder { @override void encodeInt32_forKey_(int value, NSString key) { - _lib._objc_msgSend_244(_id, _lib._sel_encodeInt32_forKey_1, value, key._id); + _lib._objc_msgSend_244( + _id, + _lib._sel_encodeInt32_forKey_1, + value, + key._id, + ); } @override void encodeInt64_forKey_(int value, NSString key) { - _lib._objc_msgSend_245(_id, _lib._sel_encodeInt64_forKey_1, value, key._id); + _lib._objc_msgSend_245( + _id, + _lib._sel_encodeInt64_forKey_1, + value, + key._id, + ); } @override void encodeFloat_forKey_(double value, NSString key) { - _lib._objc_msgSend_246(_id, _lib._sel_encodeFloat_forKey_1, value, key._id); + _lib._objc_msgSend_246( + _id, + _lib._sel_encodeFloat_forKey_1, + value, + key._id, + ); } @override @@ -55689,7 +56048,10 @@ class NSMutableData extends NSData { } @override - NSMutableData initWithBytes_length_(ffi.Pointer bytes, int length) { + NSMutableData initWithBytes_length_( + ffi.Pointer bytes, + int length, + ) { final _ret = _lib._objc_msgSend_219( _id, _lib._sel_initWithBytes_length_1, @@ -56559,11 +56921,19 @@ class NSMutableDictionary extends NSDictionary { } void removeObjectsForKeys_(NSArray keyArray) { - _lib._objc_msgSend_429(_id, _lib._sel_removeObjectsForKeys_1, keyArray._id); + _lib._objc_msgSend_429( + _id, + _lib._sel_removeObjectsForKeys_1, + keyArray._id, + ); } void setDictionary_(NSDictionary otherDictionary) { - _lib._objc_msgSend_466(_id, _lib._sel_setDictionary_1, otherDictionary._id); + _lib._objc_msgSend_466( + _id, + _lib._sel_setDictionary_1, + otherDictionary._id, + ); } void setObject_forKeyedSubscript_(NSObject? obj, NSObject key) { @@ -56959,7 +57329,12 @@ class NSItemProvider extends NSObject { /// Returns a [NSItemProvider] that points to the same underlying object as [other]. static NSItemProvider castFrom(T other) { - return NSItemProvider._(other._id, other._lib, retain: true, release: true); + return NSItemProvider._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSItemProvider] that wraps the given raw object pointer. @@ -57826,7 +58201,10 @@ class NSProgress extends NSObject { } NSNumber? get estimatedTimeRemaining { - final _ret = _lib._objc_msgSend_167(_id, _lib._sel_estimatedTimeRemaining1); + final _ret = _lib._objc_msgSend_167( + _id, + _lib._sel_estimatedTimeRemaining1, + ); return _ret.address == 0 ? null : NSNumber._(_ret, _lib, retain: true, release: true); @@ -58779,7 +59157,10 @@ void _ObjCBlock_ffiVoid_NSURL_NSError_closureTrampoline( ffi.Pointer arg0, ffi.Pointer arg1, ) => - _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[block.ref.target.address]!( + _ObjCBlock_ffiVoid_NSURL_NSError_closureRegistry[block + .ref + .target + .address]!( arg0, arg1, ); @@ -59372,7 +59753,11 @@ class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary /// will result in a crash. ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.fromFunction( PedometerBindings lib, - void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) + void Function( + ObjCBlock_ffiVoid_ObjCObject_NSError1, + NSObject, + NSDictionary, + ) fn, ) : this._( lib._newBlock1( @@ -59420,7 +59805,11 @@ class ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary /// blocks do not keep the isolate alive. ObjCBlock_ffiVoid_ffiVoidObjCObjectNSError_ObjCObject_NSDictionary.listener( PedometerBindings lib, - void Function(ObjCBlock_ffiVoid_ObjCObject_NSError1, NSObject, NSDictionary) + void Function( + ObjCBlock_ffiVoid_ObjCObject_NSError1, + NSObject, + NSDictionary, + ) fn, ) : this._( lib._newBlock1( @@ -60430,7 +60819,10 @@ class NSMutableString extends NSString { : NSObject._(_ret, _lib, retain: true, release: true); } - static NSObject? stringWithContentsOfURL_(PedometerBindings _lib, NSURL url) { + static NSObject? stringWithContentsOfURL_( + PedometerBindings _lib, + NSURL url, + ) { final _ret = _lib._objc_msgSend_223( _lib._class_NSMutableString1, _lib._sel_stringWithContentsOfURL_1, @@ -60615,7 +61007,12 @@ class NSNotification extends NSObject { /// Returns a [NSNotification] that points to the same underlying object as [other]. static NSNotification castFrom(T other) { - return NSNotification._(other._id, other._lib, retain: true, release: true); + return NSNotification._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSNotification] that wraps the given raw object pointer. @@ -60891,7 +61288,11 @@ class NSBundle extends NSObject { } NSBundle? initWithPath_(NSString path) { - final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + final _ret = _lib._objc_msgSend_38( + _id, + _lib._sel_initWithPath_1, + path._id, + ); return _ret.address == 0 ? null : NSBundle._(_ret, _lib, retain: true, release: true); @@ -61391,7 +61792,10 @@ class NSBundle extends NSObject { } NSString? get developmentLocalization { - final _ret = _lib._objc_msgSend_44(_id, _lib._sel_developmentLocalization1); + final _ret = _lib._objc_msgSend_44( + _id, + _lib._sel_developmentLocalization1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -61424,7 +61828,10 @@ class NSBundle extends NSObject { } NSArray? get executableArchitectures { - final _ret = _lib._objc_msgSend_76(_id, _lib._sel_executableArchitectures1); + final _ret = _lib._objc_msgSend_76( + _id, + _lib._sel_executableArchitectures1, + ); return _ret.address == 0 ? null : NSArray._(_ret, _lib, retain: true, release: true); @@ -62273,27 +62680,26 @@ class ObjCBlock_ffiVoid_NSDictionary_NSRange_bool extends _ObjCBlockBase { >? _dartFuncListenerTrampoline; - void call(NSDictionary arg0, _NSRange arg1, ffi.Pointer arg2) => _id - .ref - .invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - _NSRange arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock>, - ffi.Pointer, - _NSRange, - ffi.Pointer, - ) - >()(_id, arg0._id, arg1, arg2); + void call(NSDictionary arg0, _NSRange arg1, ffi.Pointer arg2) => + _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + _NSRange arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + _NSRange, + ffi.Pointer, + ) + >()(_id, arg0._id, arg1, arg2); } void _ObjCBlock_ffiVoid_ObjCObject_NSRange_bool_fnPtrTrampoline( @@ -62569,7 +62975,11 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { } set interpretedSyntax(int value) { - return _lib._objc_msgSend_570(_id, _lib._sel_setInterpretedSyntax_1, value); + return _lib._objc_msgSend_570( + _id, + _lib._sel_setInterpretedSyntax_1, + value, + ); } int get failurePolicy { @@ -62610,7 +63020,9 @@ class NSAttributedStringMarkdownParsingOptions extends NSObject { ); } - static NSAttributedStringMarkdownParsingOptions new1(PedometerBindings _lib) { + static NSAttributedStringMarkdownParsingOptions new1( + PedometerBindings _lib, + ) { final _ret = _lib._objc_msgSend_2( _lib._class_NSAttributedStringMarkdownParsingOptions1, _lib._sel_new1, @@ -62752,7 +63164,8 @@ abstract class NSAttributedStringMarkdownInterpretedSyntax { static const int NSAttributedStringMarkdownInterpretedSyntaxFull = 0; static const int NSAttributedStringMarkdownInterpretedSyntaxInlineOnly = 1; static const int - NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = 2; + NSAttributedStringMarkdownInterpretedSyntaxInlineOnlyPreservingWhitespace = + 2; } abstract class NSAttributedStringMarkdownParsingFailurePolicy { @@ -62877,7 +63290,10 @@ class NSMutableAttributedString extends NSAttributedString { ); } - void insertAttributedString_atIndex_(NSAttributedString attrString, int loc) { + void insertAttributedString_atIndex_( + NSAttributedString attrString, + int loc, + ) { _lib._objc_msgSend_593( _id, _lib._sel_insertAttributedString_atIndex_1, @@ -62927,7 +63343,12 @@ class NSMutableAttributedString extends NSAttributedString { _lib._sel_initWithString_1, str._id, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } @override @@ -62941,7 +63362,12 @@ class NSMutableAttributedString extends NSAttributedString { str._id, attrs?._id ?? ffi.nullptr, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } @override @@ -62953,7 +63379,12 @@ class NSMutableAttributedString extends NSAttributedString { _lib._sel_initWithAttributedString_1, attrStr._id, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } @override @@ -63031,7 +63462,12 @@ class NSMutableAttributedString extends NSAttributedString { options, locale?._id ?? ffi.nullptr, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). @@ -63050,7 +63486,12 @@ class NSMutableAttributedString extends NSAttributedString { locale?._id ?? ffi.nullptr, arguments, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the current locale and default options. @@ -63063,11 +63504,17 @@ class NSMutableAttributedString extends NSAttributedString { _lib._sel_localizedAttributedStringWithFormat_1, format._id, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the current locale and the specified options. - static NSMutableAttributedString localizedAttributedStringWithFormat_options_( + static NSMutableAttributedString + localizedAttributedStringWithFormat_options_( PedometerBindings _lib, NSAttributedString format, int options, @@ -63078,7 +63525,12 @@ class NSMutableAttributedString extends NSAttributedString { format._id, options, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the specified locale (or the canonical one, if nil). @@ -63097,7 +63549,12 @@ class NSMutableAttributedString extends NSAttributedString { locale?._id ?? ffi.nullptr, context._id, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the arguments list and the specified locale (or the canonical one, if nil). @@ -63118,11 +63575,17 @@ class NSMutableAttributedString extends NSAttributedString { context._id, arguments, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the current locale and default options. - static NSMutableAttributedString localizedAttributedStringWithFormat_context_( + static NSMutableAttributedString + localizedAttributedStringWithFormat_context_( PedometerBindings _lib, NSAttributedString format, NSDictionary context, @@ -63133,7 +63596,12 @@ class NSMutableAttributedString extends NSAttributedString { format._id, context._id, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } /// Formats the string using the current locale and the specified options. @@ -63151,13 +63619,23 @@ class NSMutableAttributedString extends NSAttributedString { options, context._id, ); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } @override NSMutableAttributedString init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMutableAttributedString._(_ret, _lib, retain: true, release: true); + return NSMutableAttributedString._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSMutableAttributedString new1(PedometerBindings _lib) { @@ -63338,7 +63816,11 @@ class NSDateFormatter extends NSFormatter { } set formattingContext(int value) { - return _lib._objc_msgSend_601(_id, _lib._sel_setFormattingContext_1, value); + return _lib._objc_msgSend_601( + _id, + _lib._sel_setFormattingContext_1, + value, + ); } bool getObjectValue_forString_range_error_( @@ -63485,7 +63967,11 @@ class NSDateFormatter extends NSFormatter { } set formatterBehavior(int value) { - return _lib._objc_msgSend_608(_id, _lib._sel_setFormatterBehavior_1, value); + return _lib._objc_msgSend_608( + _id, + _lib._sel_setFormatterBehavior_1, + value, + ); } NSTimeZone get timeZone { @@ -63691,7 +64177,10 @@ class NSDateFormatter extends NSFormatter { } NSArray get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_77(_id, _lib._sel_veryShortWeekdaySymbols1); + final _ret = _lib._objc_msgSend_77( + _id, + _lib._sel_veryShortWeekdaySymbols1, + ); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -64103,7 +64592,10 @@ class NSFormatter extends NSObject { } static NSFormatter new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSFormatter1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSFormatter1, + _lib._sel_new1, + ); return NSFormatter._(_ret, _lib, retain: false, release: true); } @@ -64428,7 +64920,10 @@ class NSTimeZone extends NSObject { double get daylightSavingTimeOffset { return _lib._objc_msgSend_useVariants1 - ? _lib._objc_msgSend_157_fpret(_id, _lib._sel_daylightSavingTimeOffset1) + ? _lib._objc_msgSend_157_fpret( + _id, + _lib._sel_daylightSavingTimeOffset1, + ) : _lib._objc_msgSend_157(_id, _lib._sel_daylightSavingTimeOffset1); } @@ -64864,7 +65359,10 @@ class NSCalendar extends NSObject { } NSArray get veryShortWeekdaySymbols { - final _ret = _lib._objc_msgSend_77(_id, _lib._sel_veryShortWeekdaySymbols1); + final _ret = _lib._objc_msgSend_77( + _id, + _lib._sel_veryShortWeekdaySymbols1, + ); return NSArray._(_ret, _lib, retain: true, release: true); } @@ -65245,7 +65743,11 @@ class NSCalendar extends NSObject { } bool isDateInYesterday_(NSDate date) { - return _lib._objc_msgSend_162(_id, _lib._sel_isDateInYesterday_1, date._id); + return _lib._objc_msgSend_162( + _id, + _lib._sel_isDateInYesterday_1, + date._id, + ); } bool isDateInTomorrow_(NSDate date) { @@ -65773,7 +66275,11 @@ class NSDateComponents extends NSObject { } set yearForWeekOfYear(int value) { - return _lib._objc_msgSend_634(_id, _lib._sel_setYearForWeekOfYear_1, value); + return _lib._objc_msgSend_634( + _id, + _lib._sel_setYearForWeekOfYear_1, + value, + ); } bool get leapMonth { @@ -65800,7 +66306,12 @@ class NSDateComponents extends NSObject { } void setValue_forComponent_(int value, int unit) { - _lib._objc_msgSend_635(_id, _lib._sel_setValue_forComponent_1, value, unit); + _lib._objc_msgSend_635( + _id, + _lib._sel_setValue_forComponent_1, + value, + unit, + ); } int valueForComponent_(int unit) { @@ -66200,7 +66711,11 @@ class NSNumberFormatter extends NSFormatter { } set formattingContext(int value) { - return _lib._objc_msgSend_601(_id, _lib._sel_setFormattingContext_1, value); + return _lib._objc_msgSend_601( + _id, + _lib._sel_setFormattingContext_1, + value, + ); } bool getObjectValue_forString_range_error_( @@ -66307,7 +66822,11 @@ class NSNumberFormatter extends NSFormatter { } set formatterBehavior(int value) { - return _lib._objc_msgSend_669(_id, _lib._sel_setFormatterBehavior_1, value); + return _lib._objc_msgSend_669( + _id, + _lib._sel_setFormatterBehavior_1, + value, + ); } NSString get negativeFormat { @@ -66689,7 +67208,11 @@ class NSNumberFormatter extends NSFormatter { } set percentSymbol(NSString value) { - return _lib._objc_msgSend_515(_id, _lib._sel_setPercentSymbol_1, value._id); + return _lib._objc_msgSend_515( + _id, + _lib._sel_setPercentSymbol_1, + value._id, + ); } NSString get perMillSymbol { @@ -66698,7 +67221,11 @@ class NSNumberFormatter extends NSFormatter { } set perMillSymbol(NSString value) { - return _lib._objc_msgSend_515(_id, _lib._sel_setPerMillSymbol_1, value._id); + return _lib._objc_msgSend_515( + _id, + _lib._sel_setPerMillSymbol_1, + value._id, + ); } NSString get minusSign { @@ -67029,7 +67556,10 @@ class NSNumberFormatter extends NSFormatter { } NSAttributedString get attributedStringForNil { - final _ret = _lib._objc_msgSend_583(_id, _lib._sel_attributedStringForNil1); + final _ret = _lib._objc_msgSend_583( + _id, + _lib._sel_attributedStringForNil1, + ); return NSAttributedString._(_ret, _lib, retain: true, release: true); } @@ -67654,7 +68184,10 @@ class NSScanner extends NSObject { return _lib._objc_msgSend_12(_id, _lib._sel_isAtEnd1); } - static NSScanner scannerWithString_(PedometerBindings _lib, NSString string) { + static NSScanner scannerWithString_( + PedometerBindings _lib, + NSString string, + ) { final _ret = _lib._objc_msgSend_31( _lib._class_NSScanner1, _lib._sel_scannerWithString_1, @@ -67703,7 +68236,10 @@ class NSScanner extends NSObject { } static NSScanner alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSScanner1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSScanner1, + _lib._sel_alloc1, + ); return NSScanner._(_ret, _lib, retain: false, release: true); } @@ -67936,7 +68472,10 @@ class NSException extends NSObject { } static NSException new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSException1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSException1, + _lib._sel_new1, + ); return NSException._(_ret, _lib, retain: false, release: true); } @@ -68262,7 +68801,10 @@ class NSRunLoop extends NSObject { } static NSRunLoop alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSRunLoop1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSRunLoop1, + _lib._sel_alloc1, + ); return NSRunLoop._(_ret, _lib, retain: false, release: true); } @@ -68718,7 +69260,9 @@ void _ObjCBlock_ffiVoid_NSTimer_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSTimer_closureRegistry = )>{}; @@ -68734,8 +69278,9 @@ ffi.Pointer _ObjCBlock_ffiVoid_NSTimer_registerClosure( void _ObjCBlock_ffiVoid_NSTimer_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, -) => - _ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address]!(arg0); +) => _ObjCBlock_ffiVoid_NSTimer_closureRegistry[block.ref.target.address]!( + arg0, +); class ObjCBlock_ffiVoid_NSTimer extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSTimer._( @@ -69460,7 +70005,10 @@ class NSFileHandle extends NSObject { } void acceptConnectionInBackgroundAndNotify() { - _lib._objc_msgSend_1(_id, _lib._sel_acceptConnectionInBackgroundAndNotify1); + _lib._objc_msgSend_1( + _id, + _lib._sel_acceptConnectionInBackgroundAndNotify1, + ); } void waitForDataInBackgroundAndNotifyForModes_(NSArray? modes) { @@ -69701,7 +70249,9 @@ void _ObjCBlock_ffiVoid_NSFileHandle_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry = )>{}; @@ -69717,9 +70267,10 @@ ffi.Pointer _ObjCBlock_ffiVoid_NSFileHandle_registerClosure( void _ObjCBlock_ffiVoid_NSFileHandle_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, -) => _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block.ref.target.address]!( - arg0, -); +) => + _ObjCBlock_ffiVoid_NSFileHandle_closureRegistry[block.ref.target.address]!( + arg0, + ); class ObjCBlock_ffiVoid_NSFileHandle extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSFileHandle._( @@ -71703,7 +72254,12 @@ class NSInputStream extends NSStream { } int read_maxLength_(ffi.Pointer buffer, int len) { - return _lib._objc_msgSend_746(_id, _lib._sel_read_maxLength_1, buffer, len); + return _lib._objc_msgSend_746( + _id, + _lib._sel_read_maxLength_1, + buffer, + len, + ); } bool getBuffer_length_( @@ -71777,7 +72333,10 @@ class NSInputStream extends NSStream { : NSInputStream._(_ret, _lib, retain: true, release: true); } - static NSInputStream? inputStreamWithURL_(PedometerBindings _lib, NSURL url) { + static NSInputStream? inputStreamWithURL_( + PedometerBindings _lib, + NSURL url, + ) { final _ret = _lib._objc_msgSend_223( _lib._class_NSInputStream1, _lib._sel_inputStreamWithURL_1, @@ -72259,7 +72818,12 @@ class NSOutputStream extends NSStream { /// Returns a [NSOutputStream] that points to the same underlying object as [other]. static NSOutputStream castFrom(T other) { - return NSOutputStream._(other._id, other._lib, retain: true, release: true); + return NSOutputStream._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSOutputStream] that wraps the given raw object pointer. @@ -72878,7 +73442,9 @@ void _ObjCBlock_ffiVoid_NSArray_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSArray_closureRegistry = )>{}; @@ -72894,8 +73460,9 @@ ffi.Pointer _ObjCBlock_ffiVoid_NSArray_registerClosure( void _ObjCBlock_ffiVoid_NSArray_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, -) => - _ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address]!(arg0); +) => _ObjCBlock_ffiVoid_NSArray_closureRegistry[block.ref.target.address]!( + arg0, +); class ObjCBlock_ffiVoid_NSArray extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSArray._( @@ -73147,7 +73714,10 @@ class NSIndexPath extends NSObject { } static NSIndexPath new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSIndexPath1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSIndexPath1, + _lib._sel_new1, + ); return NSIndexPath._(_ret, _lib, retain: false, release: true); } @@ -73488,7 +74058,11 @@ class NSMorphology extends NSObject { } set grammaticalGender(int value) { - return _lib._objc_msgSend_771(_id, _lib._sel_setGrammaticalGender_1, value); + return _lib._objc_msgSend_771( + _id, + _lib._sel_setGrammaticalGender_1, + value, + ); } int get partOfSpeech { @@ -73528,7 +74102,11 @@ class NSMorphology extends NSObject { } set grammaticalPerson(int value) { - return _lib._objc_msgSend_781(_id, _lib._sel_setGrammaticalPerson_1, value); + return _lib._objc_msgSend_781( + _id, + _lib._sel_setGrammaticalPerson_1, + value, + ); } int get pronounType { @@ -73901,7 +74479,10 @@ class NSMorphologyCustomPronoun extends NSObject { } NSString? get possessiveAdjectiveForm { - final _ret = _lib._objc_msgSend_44(_id, _lib._sel_possessiveAdjectiveForm1); + final _ret = _lib._objc_msgSend_44( + _id, + _lib._sel_possessiveAdjectiveForm1, + ); return _ret.address == 0 ? null : NSString._(_ret, _lib, retain: true, release: true); @@ -73933,7 +74514,12 @@ class NSMorphologyCustomPronoun extends NSObject { @override NSMorphologyCustomPronoun init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSMorphologyCustomPronoun._(_ret, _lib, retain: true, release: true); + return NSMorphologyCustomPronoun._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSMorphologyCustomPronoun new1(PedometerBindings _lib) { @@ -74517,7 +75103,10 @@ class NSOperation extends NSObject { } static NSOperation new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSOperation1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSOperation1, + _lib._sel_new1, + ); return NSOperation._(_ret, _lib, retain: false, release: true); } @@ -74654,7 +75243,12 @@ class NSPointerArray extends NSObject { /// Returns a [NSPointerArray] that points to the same underlying object as [other]. static NSPointerArray castFrom(T other) { - return NSPointerArray._(other._id, other._lib, retain: true, release: true); + return NSPointerArray._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [NSPointerArray] that wraps the given raw object pointer. @@ -75021,7 +75615,9 @@ class NSPointerFunctions extends NSObject { ffi.UnsignedLong Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) > @@ -75053,7 +75649,9 @@ class NSPointerFunctions extends NSObject { ffi.Pointer, ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) > @@ -75121,7 +75719,9 @@ class NSPointerFunctions extends NSObject { ffi.Void Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ) > @@ -75156,7 +75756,9 @@ class NSPointerFunctions extends NSObject { ffi.Pointer Function( ffi.Pointer, ffi.Pointer< - ffi.NativeFunction)> + ffi.NativeFunction< + ffi.UnsignedLong Function(ffi.Pointer) + > >, ffi.Bool, ) @@ -75784,8 +76386,10 @@ class ObjCBlock_ffiVoid_bool extends _ObjCBlockBase { /// /// Note that unlike the default behavior of NativeCallable.listener, listener /// blocks do not keep the isolate alive. - ObjCBlock_ffiVoid_bool.listener(PedometerBindings lib, void Function(bool) fn) - : this._( + ObjCBlock_ffiVoid_bool.listener( + PedometerBindings lib, + void Function(bool) fn, + ) : this._( lib._newBlock1( (_dartFuncListenerTrampoline ??= ffi.NativeCallable< @@ -75844,7 +76448,12 @@ class NSTextCheckingResult extends NSObject { bool retain = false, bool release = false, }) { - return NSTextCheckingResult._(other, lib, retain: retain, release: release); + return NSTextCheckingResult._( + other, + lib, + retain: retain, + release: release, + ); } /// Returns whether [obj] is an instance of [NSTextCheckingResult]. @@ -76767,7 +77376,10 @@ _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_fnPtrTrampoline( void Function(ffi.Pointer, int, ffi.Pointer) >()(arg0, arg1, arg2); final _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistry = - , int, ffi.Pointer)>{}; + < + int, + void Function(ffi.Pointer, int, ffi.Pointer) + >{}; int _ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool_closureRegistryIndex = 0; @@ -76944,26 +77556,29 @@ class ObjCBlock_ffiVoid_NSTextCheckingResult_NSMatchingFlags_bool >? _dartFuncListenerTrampoline; - void call(NSTextCheckingResult? arg0, int arg1, ffi.Pointer arg2) => - _id.ref.invoke - .cast< - ffi.NativeFunction< - ffi.Void Function( - ffi.Pointer<_ObjCBlock> block, - ffi.Pointer arg0, - ffi.Int32 arg1, - ffi.Pointer arg2, - ) - > - >() - .asFunction< - void Function( - ffi.Pointer<_ObjCBlock>, - ffi.Pointer, - int, - ffi.Pointer, - ) - >()(_id, arg0?._id ?? ffi.nullptr, arg1, arg2); + void call( + NSTextCheckingResult? arg0, + int arg1, + ffi.Pointer arg2, + ) => _id.ref.invoke + .cast< + ffi.NativeFunction< + ffi.Void Function( + ffi.Pointer<_ObjCBlock> block, + ffi.Pointer arg0, + ffi.Int32 arg1, + ffi.Pointer arg2, + ) + > + >() + .asFunction< + void Function( + ffi.Pointer<_ObjCBlock>, + ffi.Pointer, + int, + ffi.Pointer, + ) + >()(_id, arg0?._id ?? ffi.nullptr, arg1, arg2); } abstract class NSMatchingFlags { @@ -77702,7 +78317,12 @@ class NSURLSessionDataTask extends NSURLSessionTask { bool retain = false, bool release = false, }) { - return NSURLSessionDataTask._(other, lib, retain: retain, release: release); + return NSURLSessionDataTask._( + other, + lib, + retain: retain, + release: release, + ); } /// Returns whether [obj] is an instance of [NSURLSessionDataTask]. @@ -77845,7 +78465,9 @@ void _ObjCBlock_ffiVoid_NSCachedURLResponse_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSCachedURLResponse_closureRegistry = )>{}; @@ -79075,7 +79697,12 @@ class NSURLProtectionSpace extends NSObject { bool retain = false, bool release = false, }) { - return NSURLProtectionSpace._(other, lib, retain: retain, release: release); + return NSURLProtectionSpace._( + other, + lib, + retain: retain, + release: release, + ); } /// Returns whether [obj] is an instance of [NSURLProtectionSpace]. @@ -79752,7 +80379,9 @@ void _ObjCBlock_ffiVoid_NSDictionary_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSDictionary_closureRegistry = )>{}; @@ -79768,9 +80397,10 @@ ffi.Pointer _ObjCBlock_ffiVoid_NSDictionary_registerClosure( void _ObjCBlock_ffiVoid_NSDictionary_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, -) => _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block.ref.target.address]!( - arg0, -); +) => + _ObjCBlock_ffiVoid_NSDictionary_closureRegistry[block.ref.target.address]!( + arg0, + ); class ObjCBlock_ffiVoid_NSDictionary extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSDictionary._( @@ -79896,7 +80526,9 @@ void _ObjCBlock_ffiVoid_NSURLCredential_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSURLCredential_closureRegistry = )>{}; @@ -80331,7 +80963,10 @@ class NSURLProtocol extends NSObject { /// @discussion After unregistration, a protocol class is no longer /// consulted in calls to NSURLProtocol class methods. /// @param protocolClass The class to unregister. - static void unregisterClass_(PedometerBindings _lib, NSObject protocolClass) { + static void unregisterClass_( + PedometerBindings _lib, + NSObject protocolClass, + ) { _lib._objc_msgSend_15( _lib._class_NSURLProtocol1, _lib._sel_unregisterClass_1, @@ -81346,7 +81981,10 @@ class NSXMLParser extends NSObject { } bool get shouldReportNamespacePrefixes { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldReportNamespacePrefixes1); + return _lib._objc_msgSend_12( + _id, + _lib._sel_shouldReportNamespacePrefixes1, + ); } set shouldReportNamespacePrefixes(bool value) { @@ -81406,7 +82044,10 @@ class NSXMLParser extends NSObject { } bool get shouldResolveExternalEntities { - return _lib._objc_msgSend_12(_id, _lib._sel_shouldResolveExternalEntities1); + return _lib._objc_msgSend_12( + _id, + _lib._sel_shouldResolveExternalEntities1, + ); } set shouldResolveExternalEntities(bool value) { @@ -81446,7 +82087,10 @@ class NSXMLParser extends NSObject { } static NSXMLParser new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_NSXMLParser1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_NSXMLParser1, + _lib._sel_new1, + ); return NSXMLParser._(_ret, _lib, retain: false, release: true); } @@ -81837,7 +82481,11 @@ class NSFileWrapper extends NSObject { } NSObject? initWithPath_(NSString path) { - final _ret = _lib._objc_msgSend_38(_id, _lib._sel_initWithPath_1, path._id); + final _ret = _lib._objc_msgSend_38( + _id, + _lib._sel_initWithPath_1, + path._id, + ); return _ret.address == 0 ? null : NSObject._(_ret, _lib, retain: true, release: true); @@ -81901,7 +82549,10 @@ class NSFileWrapper extends NSObject { } NSString symbolicLinkDestination() { - final _ret = _lib._objc_msgSend_21(_id, _lib._sel_symbolicLinkDestination1); + final _ret = _lib._objc_msgSend_21( + _id, + _lib._sel_symbolicLinkDestination1, + ); return NSString._(_ret, _lib, retain: true, release: true); } @@ -82124,7 +82775,12 @@ class NSURLSession extends NSObject { NSURLSessionConfiguration get configuration { final _ret = _lib._objc_msgSend_920(_id, _lib._sel_configuration1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._( + _ret, + _lib, + retain: true, + release: true, + ); } NSString? get sessionDescription { @@ -82311,7 +82967,12 @@ class NSURLSession extends NSObject { _lib._sel_webSocketTaskWithURL_1, url._id, ); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketTask._( + _ret, + _lib, + retain: true, + release: true, + ); } NSURLSessionWebSocketTask webSocketTaskWithURL_protocols_( @@ -82324,7 +82985,12 @@ class NSURLSession extends NSObject { url._id, protocols._id, ); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketTask._( + _ret, + _lib, + retain: true, + release: true, + ); } NSURLSessionWebSocketTask webSocketTaskWithRequest_(NSURLRequest request) { @@ -82333,7 +82999,12 @@ class NSURLSession extends NSObject { _lib._sel_webSocketTaskWithRequest_1, request._id, ); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketTask._( + _ret, + _lib, + retain: true, + release: true, + ); } @override @@ -82626,7 +83297,12 @@ class NSURLSessionConfiguration extends NSObject { _lib._class_NSURLSessionConfiguration1, _lib._sel_defaultSessionConfiguration1, ); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSURLSessionConfiguration getEphemeralSessionConfiguration( @@ -82636,7 +83312,12 @@ class NSURLSessionConfiguration extends NSObject { _lib._class_NSURLSessionConfiguration1, _lib._sel_ephemeralSessionConfiguration1, ); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSURLSessionConfiguration @@ -82649,7 +83330,12 @@ class NSURLSessionConfiguration extends NSObject { _lib._sel_backgroundSessionConfigurationWithIdentifier_1, identifier._id, ); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._( + _ret, + _lib, + retain: true, + release: true, + ); } NSString? get identifier { @@ -82942,7 +83628,10 @@ class NSURLSessionConfiguration extends NSObject { } int get HTTPMaximumConnectionsPerHost { - return _lib._objc_msgSend_75(_id, _lib._sel_HTTPMaximumConnectionsPerHost1); + return _lib._objc_msgSend_75( + _id, + _lib._sel_HTTPMaximumConnectionsPerHost1, + ); } set HTTPMaximumConnectionsPerHost(int value) { @@ -83043,7 +83732,12 @@ class NSURLSessionConfiguration extends NSObject { @override NSURLSessionConfiguration init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSURLSessionConfiguration new1(PedometerBindings _lib) { @@ -83068,7 +83762,12 @@ class NSURLSessionConfiguration extends NSObject { _lib._sel_backgroundSessionConfiguration_1, identifier._id, ); - return NSURLSessionConfiguration._(_ret, _lib, retain: true, release: true); + return NSURLSessionConfiguration._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSURLSessionConfiguration allocWithZone_( @@ -83476,7 +84175,9 @@ void _ObjCBlock_ffiVoid_NSArray1_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSArray1_closureRegistry = )>{}; @@ -83797,7 +84498,9 @@ void _ObjCBlock_ffiVoid_NSData_fnPtrTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, ) => block.ref.target - .cast arg0)>>() + .cast< + ffi.NativeFunction arg0)> + >() .asFunction)>()(arg0); final _ObjCBlock_ffiVoid_NSData_closureRegistry = )>{}; @@ -83813,7 +84516,8 @@ ffi.Pointer _ObjCBlock_ffiVoid_NSData_registerClosure( void _ObjCBlock_ffiVoid_NSData_closureTrampoline( ffi.Pointer<_ObjCBlock> block, ffi.Pointer arg0, -) => _ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address]!(arg0); +) => + _ObjCBlock_ffiVoid_NSData_closureRegistry[block.ref.target.address]!(arg0); class ObjCBlock_ffiVoid_NSData extends _ObjCBlockBase { ObjCBlock_ffiVoid_NSData._( @@ -83996,7 +84700,12 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { _lib._class_NSURLSessionDownloadTask1, _lib._sel_new1, ); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + return NSURLSessionDownloadTask._( + _ret, + _lib, + retain: false, + release: true, + ); } static NSURLSessionDownloadTask allocWithZone_( @@ -84008,7 +84717,12 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { _lib._sel_allocWithZone_1, zone, ); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + return NSURLSessionDownloadTask._( + _ret, + _lib, + retain: false, + release: true, + ); } static NSURLSessionDownloadTask alloc(PedometerBindings _lib) { @@ -84016,7 +84730,12 @@ class NSURLSessionDownloadTask extends NSURLSessionTask { _lib._class_NSURLSessionDownloadTask1, _lib._sel_alloc1, ); - return NSURLSessionDownloadTask._(_ret, _lib, retain: false, release: true); + return NSURLSessionDownloadTask._( + _ret, + _lib, + retain: false, + release: true, + ); } static void cancelPreviousPerformRequestsWithTarget_selector_object_( @@ -84992,7 +85711,12 @@ class NSURLSessionWebSocketTask extends NSURLSessionTask { @override NSURLSessionWebSocketTask init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return NSURLSessionWebSocketTask._(_ret, _lib, retain: true, release: true); + return NSURLSessionWebSocketTask._( + _ret, + _lib, + retain: true, + release: true, + ); } static NSURLSessionWebSocketTask new1(PedometerBindings _lib) { @@ -85554,7 +86278,9 @@ class ObjCBlock_ffiVoid_NSURLSessionWebSocketMessage_NSError >? _dartFuncListenerTrampoline; - void call(NSURLSessionWebSocketMessage? arg0, NSError? arg1) => _id.ref.invoke + void call(NSURLSessionWebSocketMessage? arg0, NSError? arg1) => _id + .ref + .invoke .cast< ffi.NativeFunction< ffi.Void Function( @@ -85581,7 +86307,8 @@ abstract class NSURLSessionWebSocketCloseCode { static const int NSURLSessionWebSocketCloseCodeUnsupportedData = 1003; static const int NSURLSessionWebSocketCloseCodeNoStatusReceived = 1005; static const int NSURLSessionWebSocketCloseCodeAbnormalClosure = 1006; - static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = 1007; + static const int NSURLSessionWebSocketCloseCodeInvalidFramePayloadData = + 1007; static const int NSURLSessionWebSocketCloseCodePolicyViolation = 1008; static const int NSURLSessionWebSocketCloseCodeMessageTooBig = 1009; static const int NSURLSessionWebSocketCloseCodeMandatoryExtensionMissing = @@ -86178,7 +86905,10 @@ class CMPedometer extends NSObject { } static CMPedometer new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_CMPedometer1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_CMPedometer1, + _lib._sel_new1, + ); return CMPedometer._(_ret, _lib, retain: false, release: true); } @@ -86727,7 +87457,8 @@ ffi.Pointer _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_registerClosure( void Function(ffi.Pointer, ffi.Pointer) fn, ) { - final id = ++_ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistryIndex; + final id = + ++_ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistryIndex; _ObjCBlock_ffiVoid_CMPedometerEvent_NSError_closureRegistry[id] = fn; return ffi.Pointer.fromAddress(id); } @@ -87441,7 +88172,11 @@ class CLLocationManager extends NSObject { } void requestStateForRegion_(CLRegion region) { - _lib._objc_msgSend_1005(_id, _lib._sel_requestStateForRegion_1, region._id); + _lib._objc_msgSend_1005( + _id, + _lib._sel_requestStateForRegion_1, + region._id, + ); } void startRangingBeaconsInRegion_(CLBeaconRegion region) { @@ -88065,7 +88800,9 @@ class CLLocationSourceInformation extends NSObject { }) : super._(id, lib, retain: retain, release: release); /// Returns a [CLLocationSourceInformation] that points to the same underlying object as [other]. - static CLLocationSourceInformation castFrom(T other) { + static CLLocationSourceInformation castFrom( + T other, + ) { return CLLocationSourceInformation._( other._id, other._lib, @@ -88536,7 +89273,10 @@ class CLHeading extends NSObject { } static CLHeading alloc(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_CLHeading1, _lib._sel_alloc1); + final _ret = _lib._objc_msgSend_2( + _lib._class_CLHeading1, + _lib._sel_alloc1, + ); return CLHeading._(_ret, _lib, retain: false, release: true); } @@ -88852,7 +89592,12 @@ class CLBeaconRegion extends CLRegion { /// Returns a [CLBeaconRegion] that points to the same underlying object as [other]. static CLBeaconRegion castFrom(T other) { - return CLBeaconRegion._(other._id, other._lib, retain: true, release: true); + return CLBeaconRegion._( + other._id, + other._lib, + retain: true, + release: true, + ); } /// Returns a [CLBeaconRegion] that wraps the given raw object pointer. @@ -89676,7 +90421,12 @@ class CLBeaconIdentityCondition extends CLCondition { _lib._sel_initWithUUID_1, uuid._id, ); - return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); + return CLBeaconIdentityCondition._( + _ret, + _lib, + retain: true, + release: true, + ); } CLBeaconIdentityCondition initWithUUID_major_(NSUUID uuid, int major) { @@ -89686,7 +90436,12 @@ class CLBeaconIdentityCondition extends CLCondition { uuid._id, major, ); - return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); + return CLBeaconIdentityCondition._( + _ret, + _lib, + retain: true, + release: true, + ); } CLBeaconIdentityCondition initWithUUID_major_minor_( @@ -89701,13 +90456,23 @@ class CLBeaconIdentityCondition extends CLCondition { major, minor, ); - return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); + return CLBeaconIdentityCondition._( + _ret, + _lib, + retain: true, + release: true, + ); } @override CLBeaconIdentityCondition init() { final _ret = _lib._objc_msgSend_2(_id, _lib._sel_init1); - return CLBeaconIdentityCondition._(_ret, _lib, retain: true, release: true); + return CLBeaconIdentityCondition._( + _ret, + _lib, + retain: true, + release: true, + ); } static CLBeaconIdentityCondition new1(PedometerBindings _lib) { @@ -89885,7 +90650,10 @@ class CLCondition extends NSObject { } static CLCondition new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_CLCondition1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_CLCondition1, + _lib._sel_new1, + ); return CLCondition._(_ret, _lib, retain: false, release: true); } @@ -90217,7 +90985,10 @@ class CLPlacemark extends NSObject { } static CLPlacemark new1(PedometerBindings _lib) { - final _ret = _lib._objc_msgSend_2(_lib._class_CLPlacemark1, _lib._sel_new1); + final _ret = _lib._objc_msgSend_2( + _lib._class_CLPlacemark1, + _lib._sel_new1, + ); return CLPlacemark._(_ret, _lib, retain: false, release: true); } diff --git a/platform_channels/analysis_options.yaml b/platform_channels/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/platform_channels/analysis_options.yaml +++ b/platform_channels/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/platform_design/analysis_options.yaml b/platform_design/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/platform_design/analysis_options.yaml +++ b/platform_design/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/platform_view_swift/analysis_options.yaml b/platform_view_swift/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/platform_view_swift/analysis_options.yaml +++ b/platform_view_swift/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/simple_sdf/analysis_options.yaml b/simple_sdf/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/simple_sdf/analysis_options.yaml +++ b/simple_sdf/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/simple_shader/analysis_options.yaml b/simple_shader/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/simple_shader/analysis_options.yaml +++ b/simple_shader/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/testing_app/analysis_options.yaml b/testing_app/analysis_options.yaml index 13d6fe105a3..d770e9ca628 100644 --- a/testing_app/analysis_options.yaml +++ b/testing_app/analysis_options.yaml @@ -1 +1,10 @@ -include: package:analysis_defaults/flutter.yaml +analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** +include: ../analysis_options.yaml diff --git a/tool/ci_script.dart b/tool/ci_script.dart index c530339208d..f1ad8127ef8 100644 --- a/tool/ci_script.dart +++ b/tool/ci_script.dart @@ -1,5 +1,8 @@ +// ignore_for_file: avoid_print, + import 'dart:convert'; import 'dart:io'; + import 'package:path/path.dart' as path; import 'package:yaml/yaml.dart'; @@ -38,8 +41,9 @@ Future main() async { final packages = workspace .where((e) { if (skipCiList != null && skipCiList.contains(e)) return false; - if (channelSkipList != null && channelSkipList.contains(e)) + if (channelSkipList != null && channelSkipList.contains(e)) { return false; + } return true; }) .map((e) => e.toString()) @@ -99,7 +103,9 @@ Future _getFlutterChannel() async { '--machine', ], runInShell: true); if (result.exitCode != 0) { - print('Flutter version command failed with exit code ${result.exitCode}'); + print( + 'Flutter version command failed with exit code ${result.exitCode}', + ); print('Stdout: ${result.stdout}'); print('Stderr: ${result.stderr}'); return 'unknown'; diff --git a/tool/ci_with_channel.dart b/tool/ci_with_channel.dart index 47a39f16ddd..897fbaff93d 100644 --- a/tool/ci_with_channel.dart +++ b/tool/ci_with_channel.dart @@ -1,4 +1,7 @@ +// ignore_for_file: avoid_print, + import 'dart:io'; + import 'package:args/args.dart'; import 'package:path/path.dart' as path; import 'package:yaml/yaml.dart'; diff --git a/tool/clean_all.dart b/tool/clean_all.dart index d13b3d9cca3..6c7a18eb710 100644 --- a/tool/clean_all.dart +++ b/tool/clean_all.dart @@ -1,4 +1,7 @@ +// ignore_for_file: avoid_print, + import 'dart:io'; + import 'package:path/path.dart' as path; import 'package:yaml/yaml.dart'; diff --git a/tool/release.dart b/tool/release.dart index c8886cc8add..068ea3ac7f1 100644 --- a/tool/release.dart +++ b/tool/release.dart @@ -163,7 +163,7 @@ class ReleaseScriptRunner { Future _processProject(String projectPath, String dartVersion) async { final projectName = p.basename(projectPath); final projectDir = Directory(projectPath); - final issues = []; + final issues = []; if (!projectDir.existsSync()) { log(red.wrap('Project directory not found: $projectPath'), stderr); @@ -174,7 +174,10 @@ class ReleaseScriptRunner { log(styleBold.wrap('Processing project: $projectName'), stdout); log(styleBold.wrap('=========================================')!, stdout); - log(blue.wrap('Updating SDK constraints to use Dart $dartVersion'), stdout); + log( + blue.wrap('Updating SDK constraints to use Dart $dartVersion'), + stdout, + ); if (!_isDryRun) { if (!await _updateSdkConstraints(projectPath, dartVersion)) { log( @@ -191,7 +194,10 @@ class ReleaseScriptRunner { '--fatal-infos', '--fatal-warnings', ]), - Command('dart format', 'Running dart format...', 'dart', ['format', '.']), + Command('dart format', 'Running dart format...', 'dart', [ + 'format', + '.', + ]), ]; final testDir = Directory(p.join(projectPath, 'test')); @@ -211,7 +217,10 @@ class ReleaseScriptRunner { ); if (!didPass) { - log(red.wrap('${command.displayName} failed for $projectName'), stderr); + log( + red.wrap('${command.displayName} failed for $projectName'), + stderr, + ); if (command.displayName == 'pub upgrade' || command.displayName == 'pub get' && @@ -234,7 +243,7 @@ class ReleaseScriptRunner { if (issues.isNotEmpty) { logToFile('- Issues found in $projectName'); - for (final issue in issues) { + for (final String issue in issues) { if (_isOnlyWhitespace(issue)) continue; logToFile('-- $issue'); } @@ -255,7 +264,7 @@ class ReleaseScriptRunner { } try { - final newConstraint = '^${versionString}-0'; + final newConstraint = '^$versionString-0'; final content = await pubspecFile.readAsString(); final editor = YamlEditor(content); @@ -307,16 +316,18 @@ class ReleaseScriptRunner { .transform(SystemEncoding().decoder) .forEach((line) { log(line, stdout); - if (!_isOnlyWhitespace(line)) - output.writeln('${line.trim().padLeft(2)}'); + if (!_isOnlyWhitespace(line)) { + output.writeln(line.trim().padLeft(2)); + } }); final stderrFuture = process.stderr .transform(SystemEncoding().decoder) .forEach((line) { log(red.wrap(line), stderr); - if (!_isOnlyWhitespace(line)) - output.writeln('${line.trim().padLeft(2)}'); + if (!_isOnlyWhitespace(line)) { + output.writeln(line.trim().padLeft(2)); + } }); await Future.wait([stdoutFuture, stderrFuture]); @@ -325,7 +336,10 @@ class ReleaseScriptRunner { } void _printSummary(int total, List failed) { - log(styleBold.wrap('\n=========================================')!, stdout); + log( + styleBold.wrap('\n=========================================')!, + stdout, + ); log(styleBold.wrap('Update Summary')!, stdout); log(styleBold.wrap('=========================================')!, stdout); log(blue.wrap('Total projects processed: $total'), stdout); diff --git a/web_embedding/element_embedding_demo/lib/main.dart b/web_embedding/element_embedding_demo/lib/main.dart index 76aeca841e4..3b57be2939b 100644 --- a/web_embedding/element_embedding_demo/lib/main.dart +++ b/web_embedding/element_embedding_demo/lib/main.dart @@ -90,16 +90,12 @@ class _MyAppState extends State { switch (screenString) { case 'counter': _currentDemoScreen = DemoScreen.counter; - break; case 'textField': _currentDemoScreen = DemoScreen.textField; - break; case 'custom': _currentDemoScreen = DemoScreen.custom; - break; default: _currentDemoScreen = DemoScreen.counter; - break; } }); } diff --git a/web_embedding/ng-flutter/flutter/analysis_options.yaml b/web_embedding/ng-flutter/flutter/analysis_options.yaml index 2b76d176344..ad6e362b34e 100644 --- a/web_embedding/ng-flutter/flutter/analysis_options.yaml +++ b/web_embedding/ng-flutter/flutter/analysis_options.yaml @@ -1,6 +1,14 @@ -include: package:flutter_lints/flutter.yaml +include: ../../../analysis_options.yaml analyzer: + exclude: + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** language: strict-casts: true strict-inference: true