From 963aa41a1a46f594fc660567e023f6d45ce1103b Mon Sep 17 00:00:00 2001 From: Tien Do Nam Date: Sat, 12 Jul 2025 18:39:21 +0200 Subject: [PATCH] wip --- app/lib/config/init_error.dart | 12 +- app/lib/model/cross_file.mapper.dart | 49 +- app/lib/model/log_entry.mapper.dart | 42 +- .../persistence/favorite_device.mapper.dart | 65 +- .../receive_history_entry.mapper.dart | 70 +- .../state/nearby_devices_state.mapper.dart | 102 +- app/lib/model/state/network_state.mapper.dart | 57 +- .../model/state/purchase_state.mapper.dart | 77 +- .../state/send/send_session_state.mapper.dart | 101 +- .../model/state/send/sending_file.mapper.dart | 52 +- .../state/send/web/web_send_file.mapper.dart | 62 +- .../send/web/web_send_session.mapper.dart | 72 +- .../state/send/web/web_send_state.mapper.dart | 75 +- .../server/receive_session_state.mapper.dart | 114 +- .../state/server/receiving_file.mapper.dart | 60 +- .../state/server/server_state.mapper.dart | 59 +- .../model/state/settings_state.mapper.dart | 179 ++- .../pages/tabs/settings_tab_vm.mapper.dart | 240 ++- .../network/webrtc/signaling_provider.dart | 9 +- .../webrtc/signaling_provider.mapper.dart | 104 +- .../webrtc/webrtc_receiver.mapper.dart | 76 +- .../param/apk_provider_param.mapper.dart | 83 +- .../cached_apk_provider_param.mapper.dart | 95 +- app/lib/rust/api/crypto.dart | 29 +- app/lib/rust/api/logging.dart | 5 +- app/lib/rust/api/model.dart | 19 +- app/lib/rust/api/webrtc.dart | 92 +- app/lib/rust/api/webrtc.freezed.dart | 313 ++-- app/lib/rust/frb_generated.dart | 1374 ++++++++++++----- app/lib/rust/frb_generated.io.dart | 476 ++++-- app/lib/rust/frb_generated.web.dart | 547 +++++-- .../channel/android_channel.mapper.dart | 114 +- .../widget/list_tile/device_list_tile.dart | 2 +- app/macos/Podfile.lock | 52 +- app/pubspec.lock | 8 +- app/pubspec.yaml | 4 +- app/rust/Cargo.lock | 46 +- app/rust/Cargo.toml | 2 +- app/rust/src/api/webrtc.rs | 12 - app/rust/src/frb_generated.rs | 159 +- app/test/mocks.mocks.dart | 48 +- 41 files changed, 3607 insertions(+), 1550 deletions(-) diff --git a/app/lib/config/init_error.dart b/app/lib/config/init_error.dart index d9e2e1a5..85f082a3 100644 --- a/app/lib/config/init_error.dart +++ b/app/lib/config/init_error.dart @@ -1,7 +1,9 @@ import 'package:flutter/material.dart'; import 'package:localsend_app/util/native/platform_check.dart'; +import 'package:localsend_app/util/native/tray_helper.dart'; import 'package:logging/logging.dart'; import 'package:package_info_plus/package_info_plus.dart'; +import 'package:refena_flutter/refena_flutter.dart'; import 'package:window_manager/window_manager.dart'; final _logger = Logger('Init'); @@ -18,10 +20,14 @@ void showInitErrorApp({ await WindowManager.instance.show(); } - runApp(_ErrorApp( - error: error, - stackTrace: stackTrace, + runApp(RefenaScope( + child: _ErrorApp( + error: error, + stackTrace: stackTrace, + ), )); + + await showFromTray(); } class _ErrorApp extends StatefulWidget { diff --git a/app/lib/model/cross_file.mapper.dart b/app/lib/model/cross_file.mapper.dart index 497abec9..3239f28d 100644 --- a/app/lib/model/cross_file.mapper.dart +++ b/app/lib/model/cross_file.mapper.dart @@ -24,11 +24,13 @@ class CrossFileMapper extends ClassMapperBase { static String _$name(CrossFile v) => v.name; static const Field _f$name = Field('name', _$name); static FileType _$fileType(CrossFile v) => v.fileType; - static const Field _f$fileType = Field('fileType', _$fileType); + static const Field _f$fileType = + Field('fileType', _$fileType); static int _$size(CrossFile v) => v.size; static const Field _f$size = Field('size', _$size); static Uint8List? _$thumbnail(CrossFile v) => v.thumbnail; - static const Field _f$thumbnail = Field('thumbnail', _$thumbnail); + static const Field _f$thumbnail = + Field('thumbnail', _$thumbnail); static AssetEntity? _$asset(CrossFile v) => v.asset; static const Field _f$asset = Field('asset', _$asset); static String? _$path(CrossFile v) => v.path; @@ -36,9 +38,11 @@ class CrossFileMapper extends ClassMapperBase { static List? _$bytes(CrossFile v) => v.bytes; static const Field> _f$bytes = Field('bytes', _$bytes); static DateTime? _$lastModified(CrossFile v) => v.lastModified; - static const Field _f$lastModified = Field('lastModified', _$lastModified); + static const Field _f$lastModified = + Field('lastModified', _$lastModified); static DateTime? _$lastAccessed(CrossFile v) => v.lastAccessed; - static const Field _f$lastAccessed = Field('lastAccessed', _$lastAccessed); + static const Field _f$lastAccessed = + Field('lastAccessed', _$lastAccessed); @override final MappableFields fields = const { @@ -80,22 +84,27 @@ class CrossFileMapper extends ClassMapperBase { mixin CrossFileMappable { String serialize() { - return CrossFileMapper.ensureInitialized().encodeJson(this as CrossFile); + return CrossFileMapper.ensureInitialized() + .encodeJson(this as CrossFile); } Map toJson() { - return CrossFileMapper.ensureInitialized().encodeMap(this as CrossFile); + return CrossFileMapper.ensureInitialized() + .encodeMap(this as CrossFile); } - CrossFileCopyWith get copyWith => _CrossFileCopyWithImpl(this as CrossFile, $identity, $identity); + CrossFileCopyWith get copyWith => + _CrossFileCopyWithImpl(this as CrossFile, $identity, $identity); @override String toString() { - return CrossFileMapper.ensureInitialized().stringifyValue(this as CrossFile); + return CrossFileMapper.ensureInitialized() + .stringifyValue(this as CrossFile); } @override bool operator ==(Object other) { - return CrossFileMapper.ensureInitialized().equalsValue(this as CrossFile, other); + return CrossFileMapper.ensureInitialized() + .equalsValue(this as CrossFile, other); } @override @@ -105,10 +114,12 @@ mixin CrossFileMappable { } extension CrossFileValueCopy<$R, $Out> on ObjectCopyWith<$R, CrossFile, $Out> { - CrossFileCopyWith<$R, CrossFile, $Out> get $asCrossFile => $base.as((v, t, t2) => _CrossFileCopyWithImpl(v, t, t2)); + CrossFileCopyWith<$R, CrossFile, $Out> get $asCrossFile => + $base.as((v, t, t2) => _CrossFileCopyWithImpl(v, t, t2)); } -abstract class CrossFileCopyWith<$R, $In extends CrossFile, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class CrossFileCopyWith<$R, $In extends CrossFile, $Out> + implements ClassCopyWith<$R, $In, $Out> { ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes; $R call( {String? name, @@ -123,14 +134,20 @@ abstract class CrossFileCopyWith<$R, $In extends CrossFile, $Out> implements Cla CrossFileCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _CrossFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, CrossFile, $Out> implements CrossFileCopyWith<$R, CrossFile, $Out> { +class _CrossFileCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, CrossFile, $Out> + implements CrossFileCopyWith<$R, CrossFile, $Out> { _CrossFileCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = CrossFileMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + CrossFileMapper.ensureInitialized(); @override ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes => - $value.bytes != null ? ListCopyWith($value.bytes!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(bytes: v)) : null; + $value.bytes != null + ? ListCopyWith($value.bytes!, + (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(bytes: v)) + : null; @override $R call( {String? name, @@ -166,5 +183,7 @@ class _CrossFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, CrossFile, lastAccessed: data.get(#lastAccessed, or: $value.lastAccessed)); @override - CrossFileCopyWith<$R2, CrossFile, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _CrossFileCopyWithImpl($value, $cast, t); + CrossFileCopyWith<$R2, CrossFile, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _CrossFileCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/log_entry.mapper.dart b/app/lib/model/log_entry.mapper.dart index 9c663f51..491d90c6 100644 --- a/app/lib/model/log_entry.mapper.dart +++ b/app/lib/model/log_entry.mapper.dart @@ -21,7 +21,8 @@ class LogEntryMapper extends ClassMapperBase { final String id = 'LogEntry'; static DateTime _$timestamp(LogEntry v) => v.timestamp; - static const Field _f$timestamp = Field('timestamp', _$timestamp); + static const Field _f$timestamp = + Field('timestamp', _$timestamp); static String _$log(LogEntry v) => v.log; static const Field _f$log = Field('log', _$log); @@ -49,14 +50,17 @@ class LogEntryMapper extends ClassMapperBase { mixin LogEntryMappable { String serialize() { - return LogEntryMapper.ensureInitialized().encodeJson(this as LogEntry); + return LogEntryMapper.ensureInitialized() + .encodeJson(this as LogEntry); } Map toJson() { - return LogEntryMapper.ensureInitialized().encodeMap(this as LogEntry); + return LogEntryMapper.ensureInitialized() + .encodeMap(this as LogEntry); } - LogEntryCopyWith get copyWith => _LogEntryCopyWithImpl(this as LogEntry, $identity, $identity); + LogEntryCopyWith get copyWith => + _LogEntryCopyWithImpl(this as LogEntry, $identity, $identity); @override String toString() { return LogEntryMapper.ensureInitialized().stringifyValue(this as LogEntry); @@ -64,7 +68,8 @@ mixin LogEntryMappable { @override bool operator ==(Object other) { - return LogEntryMapper.ensureInitialized().equalsValue(this as LogEntry, other); + return LogEntryMapper.ensureInitialized() + .equalsValue(this as LogEntry, other); } @override @@ -74,25 +79,36 @@ mixin LogEntryMappable { } extension LogEntryValueCopy<$R, $Out> on ObjectCopyWith<$R, LogEntry, $Out> { - LogEntryCopyWith<$R, LogEntry, $Out> get $asLogEntry => $base.as((v, t, t2) => _LogEntryCopyWithImpl(v, t, t2)); + LogEntryCopyWith<$R, LogEntry, $Out> get $asLogEntry => + $base.as((v, t, t2) => _LogEntryCopyWithImpl(v, t, t2)); } -abstract class LogEntryCopyWith<$R, $In extends LogEntry, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class LogEntryCopyWith<$R, $In extends LogEntry, $Out> + implements ClassCopyWith<$R, $In, $Out> { $R call({DateTime? timestamp, String? log}); LogEntryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _LogEntryCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, LogEntry, $Out> implements LogEntryCopyWith<$R, LogEntry, $Out> { +class _LogEntryCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, LogEntry, $Out> + implements LogEntryCopyWith<$R, LogEntry, $Out> { _LogEntryCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = LogEntryMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + LogEntryMapper.ensureInitialized(); @override - $R call({DateTime? timestamp, String? log}) => - $apply(FieldCopyWithData({if (timestamp != null) #timestamp: timestamp, if (log != null) #log: log})); + $R call({DateTime? timestamp, String? log}) => $apply(FieldCopyWithData({ + if (timestamp != null) #timestamp: timestamp, + if (log != null) #log: log + })); @override - LogEntry $make(CopyWithData data) => LogEntry(timestamp: data.get(#timestamp, or: $value.timestamp), log: data.get(#log, or: $value.log)); + LogEntry $make(CopyWithData data) => LogEntry( + timestamp: data.get(#timestamp, or: $value.timestamp), + log: data.get(#log, or: $value.log)); @override - LogEntryCopyWith<$R2, LogEntry, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _LogEntryCopyWithImpl($value, $cast, t); + LogEntryCopyWith<$R2, LogEntry, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _LogEntryCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/persistence/favorite_device.mapper.dart b/app/lib/model/persistence/favorite_device.mapper.dart index 69b6f152..fe5a64fc 100644 --- a/app/lib/model/persistence/favorite_device.mapper.dart +++ b/app/lib/model/persistence/favorite_device.mapper.dart @@ -23,7 +23,8 @@ class FavoriteDeviceMapper extends ClassMapperBase { static String _$id(FavoriteDevice v) => v.id; static const Field _f$id = Field('id', _$id); static String _$fingerprint(FavoriteDevice v) => v.fingerprint; - static const Field _f$fingerprint = Field('fingerprint', _$fingerprint); + static const Field _f$fingerprint = + Field('fingerprint', _$fingerprint); static String _$ip(FavoriteDevice v) => v.ip; static const Field _f$ip = Field('ip', _$ip); static int _$port(FavoriteDevice v) => v.port; @@ -31,7 +32,8 @@ class FavoriteDeviceMapper extends ClassMapperBase { static String _$alias(FavoriteDevice v) => v.alias; static const Field _f$alias = Field('alias', _$alias); static bool _$customAlias(FavoriteDevice v) => v.customAlias; - static const Field _f$customAlias = Field('customAlias', _$customAlias, opt: true, def: false); + static const Field _f$customAlias = + Field('customAlias', _$customAlias, opt: true, def: false); @override final MappableFields fields = const { @@ -67,48 +69,73 @@ class FavoriteDeviceMapper extends ClassMapperBase { mixin FavoriteDeviceMappable { String serialize() { - return FavoriteDeviceMapper.ensureInitialized().encodeJson(this as FavoriteDevice); + return FavoriteDeviceMapper.ensureInitialized() + .encodeJson(this as FavoriteDevice); } Map toJson() { - return FavoriteDeviceMapper.ensureInitialized().encodeMap(this as FavoriteDevice); + return FavoriteDeviceMapper.ensureInitialized() + .encodeMap(this as FavoriteDevice); } - FavoriteDeviceCopyWith get copyWith => - _FavoriteDeviceCopyWithImpl(this as FavoriteDevice, $identity, $identity); + FavoriteDeviceCopyWith + get copyWith => _FavoriteDeviceCopyWithImpl( + this as FavoriteDevice, $identity, $identity); @override String toString() { - return FavoriteDeviceMapper.ensureInitialized().stringifyValue(this as FavoriteDevice); + return FavoriteDeviceMapper.ensureInitialized() + .stringifyValue(this as FavoriteDevice); } @override bool operator ==(Object other) { - return FavoriteDeviceMapper.ensureInitialized().equalsValue(this as FavoriteDevice, other); + return FavoriteDeviceMapper.ensureInitialized() + .equalsValue(this as FavoriteDevice, other); } @override int get hashCode { - return FavoriteDeviceMapper.ensureInitialized().hashValue(this as FavoriteDevice); + return FavoriteDeviceMapper.ensureInitialized() + .hashValue(this as FavoriteDevice); } } -extension FavoriteDeviceValueCopy<$R, $Out> on ObjectCopyWith<$R, FavoriteDevice, $Out> { - FavoriteDeviceCopyWith<$R, FavoriteDevice, $Out> get $asFavoriteDevice => $base.as((v, t, t2) => _FavoriteDeviceCopyWithImpl(v, t, t2)); +extension FavoriteDeviceValueCopy<$R, $Out> + on ObjectCopyWith<$R, FavoriteDevice, $Out> { + FavoriteDeviceCopyWith<$R, FavoriteDevice, $Out> get $asFavoriteDevice => + $base.as((v, t, t2) => _FavoriteDeviceCopyWithImpl(v, t, t2)); } -abstract class FavoriteDeviceCopyWith<$R, $In extends FavoriteDevice, $Out> implements ClassCopyWith<$R, $In, $Out> { - $R call({String? id, String? fingerprint, String? ip, int? port, String? alias, bool? customAlias}); - FavoriteDeviceCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); +abstract class FavoriteDeviceCopyWith<$R, $In extends FavoriteDevice, $Out> + implements ClassCopyWith<$R, $In, $Out> { + $R call( + {String? id, + String? fingerprint, + String? ip, + int? port, + String? alias, + bool? customAlias}); + FavoriteDeviceCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _FavoriteDeviceCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FavoriteDevice, $Out> +class _FavoriteDeviceCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, FavoriteDevice, $Out> implements FavoriteDeviceCopyWith<$R, FavoriteDevice, $Out> { _FavoriteDeviceCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = FavoriteDeviceMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + FavoriteDeviceMapper.ensureInitialized(); @override - $R call({String? id, String? fingerprint, String? ip, int? port, String? alias, bool? customAlias}) => $apply(FieldCopyWithData({ + $R call( + {String? id, + String? fingerprint, + String? ip, + int? port, + String? alias, + bool? customAlias}) => + $apply(FieldCopyWithData({ if (id != null) #id: id, if (fingerprint != null) #fingerprint: fingerprint, if (ip != null) #ip: ip, @@ -126,5 +153,7 @@ class _FavoriteDeviceCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Favori customAlias: data.get(#customAlias, or: $value.customAlias)); @override - FavoriteDeviceCopyWith<$R2, FavoriteDevice, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _FavoriteDeviceCopyWithImpl($value, $cast, t); + FavoriteDeviceCopyWith<$R2, FavoriteDevice, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _FavoriteDeviceCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/persistence/receive_history_entry.mapper.dart b/app/lib/model/persistence/receive_history_entry.mapper.dart index 00c47528..b72dba92 100644 --- a/app/lib/model/persistence/receive_history_entry.mapper.dart +++ b/app/lib/model/persistence/receive_history_entry.mapper.dart @@ -24,21 +24,29 @@ class ReceiveHistoryEntryMapper extends ClassMapperBase { static String _$id(ReceiveHistoryEntry v) => v.id; static const Field _f$id = Field('id', _$id); static String _$fileName(ReceiveHistoryEntry v) => v.fileName; - static const Field _f$fileName = Field('fileName', _$fileName); + static const Field _f$fileName = + Field('fileName', _$fileName); static FileType _$fileType(ReceiveHistoryEntry v) => v.fileType; - static const Field _f$fileType = Field('fileType', _$fileType); + static const Field _f$fileType = + Field('fileType', _$fileType); static String? _$path(ReceiveHistoryEntry v) => v.path; - static const Field _f$path = Field('path', _$path); + static const Field _f$path = + Field('path', _$path); static bool _$savedToGallery(ReceiveHistoryEntry v) => v.savedToGallery; - static const Field _f$savedToGallery = Field('savedToGallery', _$savedToGallery); + static const Field _f$savedToGallery = + Field('savedToGallery', _$savedToGallery); static bool _$isMessage(ReceiveHistoryEntry v) => v.isMessage; - static const Field _f$isMessage = Field('isMessage', _$isMessage, hook: IsMessageHook()); + static const Field _f$isMessage = + Field('isMessage', _$isMessage, hook: IsMessageHook()); static int _$fileSize(ReceiveHistoryEntry v) => v.fileSize; - static const Field _f$fileSize = Field('fileSize', _$fileSize); + static const Field _f$fileSize = + Field('fileSize', _$fileSize); static String _$senderAlias(ReceiveHistoryEntry v) => v.senderAlias; - static const Field _f$senderAlias = Field('senderAlias', _$senderAlias); + static const Field _f$senderAlias = + Field('senderAlias', _$senderAlias); static DateTime _$timestamp(ReceiveHistoryEntry v) => v.timestamp; - static const Field _f$timestamp = Field('timestamp', _$timestamp); + static const Field _f$timestamp = + Field('timestamp', _$timestamp); @override final MappableFields fields = const { @@ -80,37 +88,47 @@ class ReceiveHistoryEntryMapper extends ClassMapperBase { mixin ReceiveHistoryEntryMappable { String serialize() { - return ReceiveHistoryEntryMapper.ensureInitialized().encodeJson(this as ReceiveHistoryEntry); + return ReceiveHistoryEntryMapper.ensureInitialized() + .encodeJson(this as ReceiveHistoryEntry); } Map toJson() { - return ReceiveHistoryEntryMapper.ensureInitialized().encodeMap(this as ReceiveHistoryEntry); + return ReceiveHistoryEntryMapper.ensureInitialized() + .encodeMap(this as ReceiveHistoryEntry); } - ReceiveHistoryEntryCopyWith get copyWith => - _ReceiveHistoryEntryCopyWithImpl(this as ReceiveHistoryEntry, $identity, $identity); + ReceiveHistoryEntryCopyWith + get copyWith => _ReceiveHistoryEntryCopyWithImpl( + this as ReceiveHistoryEntry, $identity, $identity); @override String toString() { - return ReceiveHistoryEntryMapper.ensureInitialized().stringifyValue(this as ReceiveHistoryEntry); + return ReceiveHistoryEntryMapper.ensureInitialized() + .stringifyValue(this as ReceiveHistoryEntry); } @override bool operator ==(Object other) { - return ReceiveHistoryEntryMapper.ensureInitialized().equalsValue(this as ReceiveHistoryEntry, other); + return ReceiveHistoryEntryMapper.ensureInitialized() + .equalsValue(this as ReceiveHistoryEntry, other); } @override int get hashCode { - return ReceiveHistoryEntryMapper.ensureInitialized().hashValue(this as ReceiveHistoryEntry); + return ReceiveHistoryEntryMapper.ensureInitialized() + .hashValue(this as ReceiveHistoryEntry); } } -extension ReceiveHistoryEntryValueCopy<$R, $Out> on ObjectCopyWith<$R, ReceiveHistoryEntry, $Out> { - ReceiveHistoryEntryCopyWith<$R, ReceiveHistoryEntry, $Out> get $asReceiveHistoryEntry => - $base.as((v, t, t2) => _ReceiveHistoryEntryCopyWithImpl(v, t, t2)); +extension ReceiveHistoryEntryValueCopy<$R, $Out> + on ObjectCopyWith<$R, ReceiveHistoryEntry, $Out> { + ReceiveHistoryEntryCopyWith<$R, ReceiveHistoryEntry, $Out> + get $asReceiveHistoryEntry => + $base.as((v, t, t2) => _ReceiveHistoryEntryCopyWithImpl(v, t, t2)); } -abstract class ReceiveHistoryEntryCopyWith<$R, $In extends ReceiveHistoryEntry, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class ReceiveHistoryEntryCopyWith<$R, $In extends ReceiveHistoryEntry, + $Out> implements ClassCopyWith<$R, $In, $Out> { $R call( {String? id, String? fileName, @@ -121,15 +139,18 @@ abstract class ReceiveHistoryEntryCopyWith<$R, $In extends ReceiveHistoryEntry, int? fileSize, String? senderAlias, DateTime? timestamp}); - ReceiveHistoryEntryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + ReceiveHistoryEntryCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _ReceiveHistoryEntryCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ReceiveHistoryEntry, $Out> +class _ReceiveHistoryEntryCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ReceiveHistoryEntry, $Out> implements ReceiveHistoryEntryCopyWith<$R, ReceiveHistoryEntry, $Out> { _ReceiveHistoryEntryCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ReceiveHistoryEntryMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ReceiveHistoryEntryMapper.ensureInitialized(); @override $R call( {String? id, @@ -165,6 +186,7 @@ class _ReceiveHistoryEntryCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, R timestamp: data.get(#timestamp, or: $value.timestamp)); @override - ReceiveHistoryEntryCopyWith<$R2, ReceiveHistoryEntry, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _ReceiveHistoryEntryCopyWithImpl($value, $cast, t); + ReceiveHistoryEntryCopyWith<$R2, ReceiveHistoryEntry, $Out2> + $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _ReceiveHistoryEntryCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/nearby_devices_state.mapper.dart b/app/lib/model/state/nearby_devices_state.mapper.dart index 9aeac1a7..8f513c98 100644 --- a/app/lib/model/state/nearby_devices_state.mapper.dart +++ b/app/lib/model/state/nearby_devices_state.mapper.dart @@ -21,14 +21,20 @@ class NearbyDevicesStateMapper extends ClassMapperBase { @override final String id = 'NearbyDevicesState'; - static bool _$runningFavoriteScan(NearbyDevicesState v) => v.runningFavoriteScan; - static const Field _f$runningFavoriteScan = Field('runningFavoriteScan', _$runningFavoriteScan); + static bool _$runningFavoriteScan(NearbyDevicesState v) => + v.runningFavoriteScan; + static const Field _f$runningFavoriteScan = + Field('runningFavoriteScan', _$runningFavoriteScan); static Set _$runningIps(NearbyDevicesState v) => v.runningIps; - static const Field> _f$runningIps = Field('runningIps', _$runningIps); + static const Field> _f$runningIps = + Field('runningIps', _$runningIps); static Map _$devices(NearbyDevicesState v) => v.devices; - static const Field> _f$devices = Field('devices', _$devices); - static Map> _$signalingDevices(NearbyDevicesState v) => v.signalingDevices; - static const Field>> _f$signalingDevices = Field('signalingDevices', _$signalingDevices); + static const Field> _f$devices = + Field('devices', _$devices); + static Map> _$signalingDevices(NearbyDevicesState v) => + v.signalingDevices; + static const Field>> + _f$signalingDevices = Field('signalingDevices', _$signalingDevices); @override final MappableFields fields = const { @@ -60,71 +66,103 @@ class NearbyDevicesStateMapper extends ClassMapperBase { mixin NearbyDevicesStateMappable { String serialize() { - return NearbyDevicesStateMapper.ensureInitialized().encodeJson(this as NearbyDevicesState); + return NearbyDevicesStateMapper.ensureInitialized() + .encodeJson(this as NearbyDevicesState); } Map toJson() { - return NearbyDevicesStateMapper.ensureInitialized().encodeMap(this as NearbyDevicesState); + return NearbyDevicesStateMapper.ensureInitialized() + .encodeMap(this as NearbyDevicesState); } - NearbyDevicesStateCopyWith get copyWith => - _NearbyDevicesStateCopyWithImpl(this as NearbyDevicesState, $identity, $identity); + NearbyDevicesStateCopyWith + get copyWith => _NearbyDevicesStateCopyWithImpl( + this as NearbyDevicesState, $identity, $identity); @override String toString() { - return NearbyDevicesStateMapper.ensureInitialized().stringifyValue(this as NearbyDevicesState); + return NearbyDevicesStateMapper.ensureInitialized() + .stringifyValue(this as NearbyDevicesState); } @override bool operator ==(Object other) { - return NearbyDevicesStateMapper.ensureInitialized().equalsValue(this as NearbyDevicesState, other); + return NearbyDevicesStateMapper.ensureInitialized() + .equalsValue(this as NearbyDevicesState, other); } @override int get hashCode { - return NearbyDevicesStateMapper.ensureInitialized().hashValue(this as NearbyDevicesState); + return NearbyDevicesStateMapper.ensureInitialized() + .hashValue(this as NearbyDevicesState); } } -extension NearbyDevicesStateValueCopy<$R, $Out> on ObjectCopyWith<$R, NearbyDevicesState, $Out> { - NearbyDevicesStateCopyWith<$R, NearbyDevicesState, $Out> get $asNearbyDevicesState => - $base.as((v, t, t2) => _NearbyDevicesStateCopyWithImpl(v, t, t2)); +extension NearbyDevicesStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, NearbyDevicesState, $Out> { + NearbyDevicesStateCopyWith<$R, NearbyDevicesState, $Out> + get $asNearbyDevicesState => + $base.as((v, t, t2) => _NearbyDevicesStateCopyWithImpl(v, t, t2)); } -abstract class NearbyDevicesStateCopyWith<$R, $In extends NearbyDevicesState, $Out> implements ClassCopyWith<$R, $In, $Out> { - MapCopyWith<$R, String, Device, DeviceCopyWith<$R, Device, Device>> get devices; - MapCopyWith<$R, String, Set, ObjectCopyWith<$R, Set, Set>> get signalingDevices; - $R call({bool? runningFavoriteScan, Set? runningIps, Map? devices, Map>? signalingDevices}); - NearbyDevicesStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); +abstract class NearbyDevicesStateCopyWith<$R, $In extends NearbyDevicesState, + $Out> implements ClassCopyWith<$R, $In, $Out> { + MapCopyWith<$R, String, Device, DeviceCopyWith<$R, Device, Device>> + get devices; + MapCopyWith<$R, String, Set, + ObjectCopyWith<$R, Set, Set>> get signalingDevices; + $R call( + {bool? runningFavoriteScan, + Set? runningIps, + Map? devices, + Map>? signalingDevices}); + NearbyDevicesStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _NearbyDevicesStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, NearbyDevicesState, $Out> +class _NearbyDevicesStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, NearbyDevicesState, $Out> implements NearbyDevicesStateCopyWith<$R, NearbyDevicesState, $Out> { _NearbyDevicesStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = NearbyDevicesStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + NearbyDevicesStateMapper.ensureInitialized(); @override - MapCopyWith<$R, String, Device, DeviceCopyWith<$R, Device, Device>> get devices => - MapCopyWith($value.devices, (v, t) => v.copyWith.$chain(t), (v) => call(devices: v)); + MapCopyWith<$R, String, Device, DeviceCopyWith<$R, Device, Device>> + get devices => MapCopyWith($value.devices, (v, t) => v.copyWith.$chain(t), + (v) => call(devices: v)); @override - MapCopyWith<$R, String, Set, ObjectCopyWith<$R, Set, Set>> get signalingDevices => - MapCopyWith($value.signalingDevices, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(signalingDevices: v)); + MapCopyWith<$R, String, Set, + ObjectCopyWith<$R, Set, Set>> + get signalingDevices => MapCopyWith( + $value.signalingDevices, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(signalingDevices: v)); @override - $R call({bool? runningFavoriteScan, Set? runningIps, Map? devices, Map>? signalingDevices}) => + $R call( + {bool? runningFavoriteScan, + Set? runningIps, + Map? devices, + Map>? signalingDevices}) => $apply(FieldCopyWithData({ - if (runningFavoriteScan != null) #runningFavoriteScan: runningFavoriteScan, + if (runningFavoriteScan != null) + #runningFavoriteScan: runningFavoriteScan, if (runningIps != null) #runningIps: runningIps, if (devices != null) #devices: devices, if (signalingDevices != null) #signalingDevices: signalingDevices })); @override NearbyDevicesState $make(CopyWithData data) => NearbyDevicesState( - runningFavoriteScan: data.get(#runningFavoriteScan, or: $value.runningFavoriteScan), + runningFavoriteScan: + data.get(#runningFavoriteScan, or: $value.runningFavoriteScan), runningIps: data.get(#runningIps, or: $value.runningIps), devices: data.get(#devices, or: $value.devices), - signalingDevices: data.get(#signalingDevices, or: $value.signalingDevices)); + signalingDevices: + data.get(#signalingDevices, or: $value.signalingDevices)); @override - NearbyDevicesStateCopyWith<$R2, NearbyDevicesState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + NearbyDevicesStateCopyWith<$R2, NearbyDevicesState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _NearbyDevicesStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/network_state.mapper.dart b/app/lib/model/state/network_state.mapper.dart index 997b7929..199774f2 100644 --- a/app/lib/model/state/network_state.mapper.dart +++ b/app/lib/model/state/network_state.mapper.dart @@ -21,9 +21,11 @@ class NetworkStateMapper extends ClassMapperBase { final String id = 'NetworkState'; static List _$localIps(NetworkState v) => v.localIps; - static const Field> _f$localIps = Field('localIps', _$localIps); + static const Field> _f$localIps = + Field('localIps', _$localIps); static bool _$initialized(NetworkState v) => v.initialized; - static const Field _f$initialized = Field('initialized', _$initialized); + static const Field _f$initialized = + Field('initialized', _$initialized); @override final MappableFields fields = const { @@ -32,7 +34,8 @@ class NetworkStateMapper extends ClassMapperBase { }; static NetworkState _instantiate(DecodingData data) { - return NetworkState(localIps: data.dec(_f$localIps), initialized: data.dec(_f$initialized)); + return NetworkState( + localIps: data.dec(_f$localIps), initialized: data.dec(_f$initialized)); } @override @@ -49,56 +52,74 @@ class NetworkStateMapper extends ClassMapperBase { mixin NetworkStateMappable { String serialize() { - return NetworkStateMapper.ensureInitialized().encodeJson(this as NetworkState); + return NetworkStateMapper.ensureInitialized() + .encodeJson(this as NetworkState); } Map toJson() { - return NetworkStateMapper.ensureInitialized().encodeMap(this as NetworkState); + return NetworkStateMapper.ensureInitialized() + .encodeMap(this as NetworkState); } NetworkStateCopyWith get copyWith => _NetworkStateCopyWithImpl(this as NetworkState, $identity, $identity); @override String toString() { - return NetworkStateMapper.ensureInitialized().stringifyValue(this as NetworkState); + return NetworkStateMapper.ensureInitialized() + .stringifyValue(this as NetworkState); } @override bool operator ==(Object other) { - return NetworkStateMapper.ensureInitialized().equalsValue(this as NetworkState, other); + return NetworkStateMapper.ensureInitialized() + .equalsValue(this as NetworkState, other); } @override int get hashCode { - return NetworkStateMapper.ensureInitialized().hashValue(this as NetworkState); + return NetworkStateMapper.ensureInitialized() + .hashValue(this as NetworkState); } } -extension NetworkStateValueCopy<$R, $Out> on ObjectCopyWith<$R, NetworkState, $Out> { - NetworkStateCopyWith<$R, NetworkState, $Out> get $asNetworkState => $base.as((v, t, t2) => _NetworkStateCopyWithImpl(v, t, t2)); +extension NetworkStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, NetworkState, $Out> { + NetworkStateCopyWith<$R, NetworkState, $Out> get $asNetworkState => + $base.as((v, t, t2) => _NetworkStateCopyWithImpl(v, t, t2)); } -abstract class NetworkStateCopyWith<$R, $In extends NetworkState, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class NetworkStateCopyWith<$R, $In extends NetworkState, $Out> + implements ClassCopyWith<$R, $In, $Out> { ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get localIps; $R call({List? localIps, bool? initialized}); NetworkStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _NetworkStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, NetworkState, $Out> implements NetworkStateCopyWith<$R, NetworkState, $Out> { +class _NetworkStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, NetworkState, $Out> + implements NetworkStateCopyWith<$R, NetworkState, $Out> { _NetworkStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = NetworkStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + NetworkStateMapper.ensureInitialized(); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get localIps => - ListCopyWith($value.localIps, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(localIps: v)); + ListCopyWith($value.localIps, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(localIps: v)); @override $R call({List? localIps, bool? initialized}) => - $apply(FieldCopyWithData({if (localIps != null) #localIps: localIps, if (initialized != null) #initialized: initialized})); + $apply(FieldCopyWithData({ + if (localIps != null) #localIps: localIps, + if (initialized != null) #initialized: initialized + })); @override - NetworkState $make(CopyWithData data) => - NetworkState(localIps: data.get(#localIps, or: $value.localIps), initialized: data.get(#initialized, or: $value.initialized)); + NetworkState $make(CopyWithData data) => NetworkState( + localIps: data.get(#localIps, or: $value.localIps), + initialized: data.get(#initialized, or: $value.initialized)); @override - NetworkStateCopyWith<$R2, NetworkState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _NetworkStateCopyWithImpl($value, $cast, t); + NetworkStateCopyWith<$R2, NetworkState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _NetworkStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/purchase_state.mapper.dart b/app/lib/model/state/purchase_state.mapper.dart index 6d850997..7f90c33c 100644 --- a/app/lib/model/state/purchase_state.mapper.dart +++ b/app/lib/model/state/purchase_state.mapper.dart @@ -21,11 +21,14 @@ class PurchaseStateMapper extends ClassMapperBase { final String id = 'PurchaseState'; static Map _$prices(PurchaseState v) => v.prices; - static const Field> _f$prices = Field('prices', _$prices); + static const Field> _f$prices = + Field('prices', _$prices); static Set _$purchases(PurchaseState v) => v.purchases; - static const Field> _f$purchases = Field('purchases', _$purchases); + static const Field> _f$purchases = + Field('purchases', _$purchases); static bool _$pending(PurchaseState v) => v.pending; - static const Field _f$pending = Field('pending', _$pending); + static const Field _f$pending = + Field('pending', _$pending); @override final MappableFields fields = const { @@ -35,7 +38,10 @@ class PurchaseStateMapper extends ClassMapperBase { }; static PurchaseState _instantiate(DecodingData data) { - return PurchaseState(prices: data.dec(_f$prices), purchases: data.dec(_f$purchases), pending: data.dec(_f$pending)); + return PurchaseState( + prices: data.dec(_f$prices), + purchases: data.dec(_f$purchases), + pending: data.dec(_f$pending)); } @override @@ -52,53 +58,76 @@ class PurchaseStateMapper extends ClassMapperBase { mixin PurchaseStateMappable { String serialize() { - return PurchaseStateMapper.ensureInitialized().encodeJson(this as PurchaseState); + return PurchaseStateMapper.ensureInitialized() + .encodeJson(this as PurchaseState); } Map toJson() { - return PurchaseStateMapper.ensureInitialized().encodeMap(this as PurchaseState); + return PurchaseStateMapper.ensureInitialized() + .encodeMap(this as PurchaseState); } - PurchaseStateCopyWith get copyWith => - _PurchaseStateCopyWithImpl(this as PurchaseState, $identity, $identity); + PurchaseStateCopyWith + get copyWith => _PurchaseStateCopyWithImpl( + this as PurchaseState, $identity, $identity); @override String toString() { - return PurchaseStateMapper.ensureInitialized().stringifyValue(this as PurchaseState); + return PurchaseStateMapper.ensureInitialized() + .stringifyValue(this as PurchaseState); } @override bool operator ==(Object other) { - return PurchaseStateMapper.ensureInitialized().equalsValue(this as PurchaseState, other); + return PurchaseStateMapper.ensureInitialized() + .equalsValue(this as PurchaseState, other); } @override int get hashCode { - return PurchaseStateMapper.ensureInitialized().hashValue(this as PurchaseState); + return PurchaseStateMapper.ensureInitialized() + .hashValue(this as PurchaseState); } } -extension PurchaseStateValueCopy<$R, $Out> on ObjectCopyWith<$R, PurchaseState, $Out> { - PurchaseStateCopyWith<$R, PurchaseState, $Out> get $asPurchaseState => $base.as((v, t, t2) => _PurchaseStateCopyWithImpl(v, t, t2)); +extension PurchaseStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, PurchaseState, $Out> { + PurchaseStateCopyWith<$R, PurchaseState, $Out> get $asPurchaseState => + $base.as((v, t, t2) => _PurchaseStateCopyWithImpl(v, t, t2)); } -abstract class PurchaseStateCopyWith<$R, $In extends PurchaseState, $Out> implements ClassCopyWith<$R, $In, $Out> { - MapCopyWith<$R, PurchaseItem, String, ObjectCopyWith<$R, String, String>> get prices; - $R call({Map? prices, Set? purchases, bool? pending}); +abstract class PurchaseStateCopyWith<$R, $In extends PurchaseState, $Out> + implements ClassCopyWith<$R, $In, $Out> { + MapCopyWith<$R, PurchaseItem, String, ObjectCopyWith<$R, String, String>> + get prices; + $R call( + {Map? prices, + Set? purchases, + bool? pending}); PurchaseStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PurchaseStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PurchaseState, $Out> +class _PurchaseStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, PurchaseState, $Out> implements PurchaseStateCopyWith<$R, PurchaseState, $Out> { _PurchaseStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = PurchaseStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + PurchaseStateMapper.ensureInitialized(); @override - MapCopyWith<$R, PurchaseItem, String, ObjectCopyWith<$R, String, String>> get prices => - MapCopyWith($value.prices, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(prices: v)); + MapCopyWith<$R, PurchaseItem, String, ObjectCopyWith<$R, String, String>> + get prices => MapCopyWith($value.prices, + (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(prices: v)); @override - $R call({Map? prices, Set? purchases, bool? pending}) => $apply( - FieldCopyWithData({if (prices != null) #prices: prices, if (purchases != null) #purchases: purchases, if (pending != null) #pending: pending})); + $R call( + {Map? prices, + Set? purchases, + bool? pending}) => + $apply(FieldCopyWithData({ + if (prices != null) #prices: prices, + if (purchases != null) #purchases: purchases, + if (pending != null) #pending: pending + })); @override PurchaseState $make(CopyWithData data) => PurchaseState( prices: data.get(#prices, or: $value.prices), @@ -106,5 +135,7 @@ class _PurchaseStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Purchas pending: data.get(#pending, or: $value.pending)); @override - PurchaseStateCopyWith<$R2, PurchaseState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _PurchaseStateCopyWithImpl($value, $cast, t); + PurchaseStateCopyWith<$R2, PurchaseState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _PurchaseStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/send/send_session_state.mapper.dart b/app/lib/model/state/send/send_session_state.mapper.dart index ac31f2bc..8da6e6fa 100644 --- a/app/lib/model/state/send/send_session_state.mapper.dart +++ b/app/lib/model/state/send/send_session_state.mapper.dart @@ -23,25 +23,36 @@ class SendSessionStateMapper extends ClassMapperBase { final String id = 'SendSessionState'; static String _$sessionId(SendSessionState v) => v.sessionId; - static const Field _f$sessionId = Field('sessionId', _$sessionId); + static const Field _f$sessionId = + Field('sessionId', _$sessionId); static String? _$remoteSessionId(SendSessionState v) => v.remoteSessionId; - static const Field _f$remoteSessionId = Field('remoteSessionId', _$remoteSessionId); + static const Field _f$remoteSessionId = + Field('remoteSessionId', _$remoteSessionId); static bool _$background(SendSessionState v) => v.background; - static const Field _f$background = Field('background', _$background); + static const Field _f$background = + Field('background', _$background); static SessionStatus _$status(SendSessionState v) => v.status; - static const Field _f$status = Field('status', _$status); + static const Field _f$status = + Field('status', _$status); static Device _$target(SendSessionState v) => v.target; - static const Field _f$target = Field('target', _$target); + static const Field _f$target = + Field('target', _$target); static Map _$files(SendSessionState v) => v.files; - static const Field> _f$files = Field('files', _$files); + static const Field> _f$files = + Field('files', _$files); static int? _$startTime(SendSessionState v) => v.startTime; - static const Field _f$startTime = Field('startTime', _$startTime); + static const Field _f$startTime = + Field('startTime', _$startTime); static int? _$endTime(SendSessionState v) => v.endTime; - static const Field _f$endTime = Field('endTime', _$endTime); - static List? _$sendingTasks(SendSessionState v) => v.sendingTasks; - static const Field> _f$sendingTasks = Field('sendingTasks', _$sendingTasks); + static const Field _f$endTime = + Field('endTime', _$endTime); + static List? _$sendingTasks(SendSessionState v) => + v.sendingTasks; + static const Field> _f$sendingTasks = + Field('sendingTasks', _$sendingTasks); static String? _$errorMessage(SendSessionState v) => v.errorMessage; - static const Field _f$errorMessage = Field('errorMessage', _$errorMessage); + static const Field _f$errorMessage = + Field('errorMessage', _$errorMessage); @override final MappableFields fields = const { @@ -85,39 +96,51 @@ class SendSessionStateMapper extends ClassMapperBase { mixin SendSessionStateMappable { String serialize() { - return SendSessionStateMapper.ensureInitialized().encodeJson(this as SendSessionState); + return SendSessionStateMapper.ensureInitialized() + .encodeJson(this as SendSessionState); } Map toJson() { - return SendSessionStateMapper.ensureInitialized().encodeMap(this as SendSessionState); + return SendSessionStateMapper.ensureInitialized() + .encodeMap(this as SendSessionState); } - SendSessionStateCopyWith get copyWith => - _SendSessionStateCopyWithImpl(this as SendSessionState, $identity, $identity); + SendSessionStateCopyWith + get copyWith => _SendSessionStateCopyWithImpl( + this as SendSessionState, $identity, $identity); @override String toString() { - return SendSessionStateMapper.ensureInitialized().stringifyValue(this as SendSessionState); + return SendSessionStateMapper.ensureInitialized() + .stringifyValue(this as SendSessionState); } @override bool operator ==(Object other) { - return SendSessionStateMapper.ensureInitialized().equalsValue(this as SendSessionState, other); + return SendSessionStateMapper.ensureInitialized() + .equalsValue(this as SendSessionState, other); } @override int get hashCode { - return SendSessionStateMapper.ensureInitialized().hashValue(this as SendSessionState); + return SendSessionStateMapper.ensureInitialized() + .hashValue(this as SendSessionState); } } -extension SendSessionStateValueCopy<$R, $Out> on ObjectCopyWith<$R, SendSessionState, $Out> { - SendSessionStateCopyWith<$R, SendSessionState, $Out> get $asSendSessionState => $base.as((v, t, t2) => _SendSessionStateCopyWithImpl(v, t, t2)); +extension SendSessionStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, SendSessionState, $Out> { + SendSessionStateCopyWith<$R, SendSessionState, $Out> + get $asSendSessionState => + $base.as((v, t, t2) => _SendSessionStateCopyWithImpl(v, t, t2)); } -abstract class SendSessionStateCopyWith<$R, $In extends SendSessionState, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class SendSessionStateCopyWith<$R, $In extends SendSessionState, $Out> + implements ClassCopyWith<$R, $In, $Out> { DeviceCopyWith<$R, Device, Device> get target; - MapCopyWith<$R, String, SendingFile, SendingFileCopyWith<$R, SendingFile, SendingFile>> get files; - ListCopyWith<$R, SendingTask, ObjectCopyWith<$R, SendingTask, SendingTask>>? get sendingTasks; + MapCopyWith<$R, String, SendingFile, + SendingFileCopyWith<$R, SendingFile, SendingFile>> get files; + ListCopyWith<$R, SendingTask, ObjectCopyWith<$R, SendingTask, SendingTask>>? + get sendingTasks; $R call( {String? sessionId, String? remoteSessionId, @@ -129,24 +152,34 @@ abstract class SendSessionStateCopyWith<$R, $In extends SendSessionState, $Out> int? endTime, List? sendingTasks, String? errorMessage}); - SendSessionStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + SendSessionStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _SendSessionStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SendSessionState, $Out> +class _SendSessionStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SendSessionState, $Out> implements SendSessionStateCopyWith<$R, SendSessionState, $Out> { _SendSessionStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SendSessionStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SendSessionStateMapper.ensureInitialized(); @override - DeviceCopyWith<$R, Device, Device> get target => $value.target.copyWith.$chain((v) => call(target: v)); + DeviceCopyWith<$R, Device, Device> get target => + $value.target.copyWith.$chain((v) => call(target: v)); @override - MapCopyWith<$R, String, SendingFile, SendingFileCopyWith<$R, SendingFile, SendingFile>> get files => - MapCopyWith($value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); + MapCopyWith<$R, String, SendingFile, + SendingFileCopyWith<$R, SendingFile, SendingFile>> + get files => MapCopyWith( + $value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); @override - ListCopyWith<$R, SendingTask, ObjectCopyWith<$R, SendingTask, SendingTask>>? get sendingTasks => $value.sendingTasks != null - ? ListCopyWith($value.sendingTasks!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(sendingTasks: v)) - : null; + ListCopyWith<$R, SendingTask, ObjectCopyWith<$R, SendingTask, SendingTask>>? + get sendingTasks => $value.sendingTasks != null + ? ListCopyWith( + $value.sendingTasks!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(sendingTasks: v)) + : null; @override $R call( {String? sessionId, @@ -185,5 +218,7 @@ class _SendSessionStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Send errorMessage: data.get(#errorMessage, or: $value.errorMessage)); @override - SendSessionStateCopyWith<$R2, SendSessionState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SendSessionStateCopyWithImpl($value, $cast, t); + SendSessionStateCopyWith<$R2, SendSessionState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _SendSessionStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/send/sending_file.mapper.dart b/app/lib/model/state/send/sending_file.mapper.dart index 8d019b71..8807f0b2 100644 --- a/app/lib/model/state/send/sending_file.mapper.dart +++ b/app/lib/model/state/send/sending_file.mapper.dart @@ -23,19 +23,23 @@ class SendingFileMapper extends ClassMapperBase { static FileDto _$file(SendingFile v) => v.file; static const Field _f$file = Field('file', _$file); static FileStatus _$status(SendingFile v) => v.status; - static const Field _f$status = Field('status', _$status); + static const Field _f$status = + Field('status', _$status); static String? _$token(SendingFile v) => v.token; static const Field _f$token = Field('token', _$token); static Uint8List? _$thumbnail(SendingFile v) => v.thumbnail; - static const Field _f$thumbnail = Field('thumbnail', _$thumbnail); + static const Field _f$thumbnail = + Field('thumbnail', _$thumbnail); static AssetEntity? _$asset(SendingFile v) => v.asset; - static const Field _f$asset = Field('asset', _$asset); + static const Field _f$asset = + Field('asset', _$asset); static String? _$path(SendingFile v) => v.path; static const Field _f$path = Field('path', _$path); static List? _$bytes(SendingFile v) => v.bytes; static const Field> _f$bytes = Field('bytes', _$bytes); static String? _$errorMessage(SendingFile v) => v.errorMessage; - static const Field _f$errorMessage = Field('errorMessage', _$errorMessage); + static const Field _f$errorMessage = + Field('errorMessage', _$errorMessage); @override final MappableFields fields = const { @@ -75,22 +79,27 @@ class SendingFileMapper extends ClassMapperBase { mixin SendingFileMappable { String serialize() { - return SendingFileMapper.ensureInitialized().encodeJson(this as SendingFile); + return SendingFileMapper.ensureInitialized() + .encodeJson(this as SendingFile); } Map toJson() { - return SendingFileMapper.ensureInitialized().encodeMap(this as SendingFile); + return SendingFileMapper.ensureInitialized() + .encodeMap(this as SendingFile); } - SendingFileCopyWith get copyWith => _SendingFileCopyWithImpl(this as SendingFile, $identity, $identity); + SendingFileCopyWith get copyWith => + _SendingFileCopyWithImpl(this as SendingFile, $identity, $identity); @override String toString() { - return SendingFileMapper.ensureInitialized().stringifyValue(this as SendingFile); + return SendingFileMapper.ensureInitialized() + .stringifyValue(this as SendingFile); } @override bool operator ==(Object other) { - return SendingFileMapper.ensureInitialized().equalsValue(this as SendingFile, other); + return SendingFileMapper.ensureInitialized() + .equalsValue(this as SendingFile, other); } @override @@ -99,11 +108,14 @@ mixin SendingFileMappable { } } -extension SendingFileValueCopy<$R, $Out> on ObjectCopyWith<$R, SendingFile, $Out> { - SendingFileCopyWith<$R, SendingFile, $Out> get $asSendingFile => $base.as((v, t, t2) => _SendingFileCopyWithImpl(v, t, t2)); +extension SendingFileValueCopy<$R, $Out> + on ObjectCopyWith<$R, SendingFile, $Out> { + SendingFileCopyWith<$R, SendingFile, $Out> get $asSendingFile => + $base.as((v, t, t2) => _SendingFileCopyWithImpl(v, t, t2)); } -abstract class SendingFileCopyWith<$R, $In extends SendingFile, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class SendingFileCopyWith<$R, $In extends SendingFile, $Out> + implements ClassCopyWith<$R, $In, $Out> { ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes; $R call( {FileDto? file, @@ -117,14 +129,20 @@ abstract class SendingFileCopyWith<$R, $In extends SendingFile, $Out> implements SendingFileCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SendingFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SendingFile, $Out> implements SendingFileCopyWith<$R, SendingFile, $Out> { +class _SendingFileCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SendingFile, $Out> + implements SendingFileCopyWith<$R, SendingFile, $Out> { _SendingFileCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SendingFileMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SendingFileMapper.ensureInitialized(); @override ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes => - $value.bytes != null ? ListCopyWith($value.bytes!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(bytes: v)) : null; + $value.bytes != null + ? ListCopyWith($value.bytes!, + (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(bytes: v)) + : null; @override $R call( {FileDto? file, @@ -157,5 +175,7 @@ class _SendingFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SendingFi errorMessage: data.get(#errorMessage, or: $value.errorMessage)); @override - SendingFileCopyWith<$R2, SendingFile, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SendingFileCopyWithImpl($value, $cast, t); + SendingFileCopyWith<$R2, SendingFile, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _SendingFileCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/send/web/web_send_file.mapper.dart b/app/lib/model/state/send/web/web_send_file.mapper.dart index ed04ece0..530fa84e 100644 --- a/app/lib/model/state/send/web/web_send_file.mapper.dart +++ b/app/lib/model/state/send/web/web_send_file.mapper.dart @@ -23,7 +23,8 @@ class WebSendFileMapper extends ClassMapperBase { static FileDto _$file(WebSendFile v) => v.file; static const Field _f$file = Field('file', _$file); static AssetEntity? _$asset(WebSendFile v) => v.asset; - static const Field _f$asset = Field('asset', _$asset); + static const Field _f$asset = + Field('asset', _$asset); static String? _$path(WebSendFile v) => v.path; static const Field _f$path = Field('path', _$path); static List? _$bytes(WebSendFile v) => v.bytes; @@ -38,7 +39,11 @@ class WebSendFileMapper extends ClassMapperBase { }; static WebSendFile _instantiate(DecodingData data) { - return WebSendFile(file: data.dec(_f$file), asset: data.dec(_f$asset), path: data.dec(_f$path), bytes: data.dec(_f$bytes)); + return WebSendFile( + file: data.dec(_f$file), + asset: data.dec(_f$asset), + path: data.dec(_f$path), + bytes: data.dec(_f$bytes)); } @override @@ -55,22 +60,27 @@ class WebSendFileMapper extends ClassMapperBase { mixin WebSendFileMappable { String serialize() { - return WebSendFileMapper.ensureInitialized().encodeJson(this as WebSendFile); + return WebSendFileMapper.ensureInitialized() + .encodeJson(this as WebSendFile); } Map toJson() { - return WebSendFileMapper.ensureInitialized().encodeMap(this as WebSendFile); + return WebSendFileMapper.ensureInitialized() + .encodeMap(this as WebSendFile); } - WebSendFileCopyWith get copyWith => _WebSendFileCopyWithImpl(this as WebSendFile, $identity, $identity); + WebSendFileCopyWith get copyWith => + _WebSendFileCopyWithImpl(this as WebSendFile, $identity, $identity); @override String toString() { - return WebSendFileMapper.ensureInitialized().stringifyValue(this as WebSendFile); + return WebSendFileMapper.ensureInitialized() + .stringifyValue(this as WebSendFile); } @override bool operator ==(Object other) { - return WebSendFileMapper.ensureInitialized().equalsValue(this as WebSendFile, other); + return WebSendFileMapper.ensureInitialized() + .equalsValue(this as WebSendFile, other); } @override @@ -79,27 +89,45 @@ mixin WebSendFileMappable { } } -extension WebSendFileValueCopy<$R, $Out> on ObjectCopyWith<$R, WebSendFile, $Out> { - WebSendFileCopyWith<$R, WebSendFile, $Out> get $asWebSendFile => $base.as((v, t, t2) => _WebSendFileCopyWithImpl(v, t, t2)); +extension WebSendFileValueCopy<$R, $Out> + on ObjectCopyWith<$R, WebSendFile, $Out> { + WebSendFileCopyWith<$R, WebSendFile, $Out> get $asWebSendFile => + $base.as((v, t, t2) => _WebSendFileCopyWithImpl(v, t, t2)); } -abstract class WebSendFileCopyWith<$R, $In extends WebSendFile, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class WebSendFileCopyWith<$R, $In extends WebSendFile, $Out> + implements ClassCopyWith<$R, $In, $Out> { ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes; $R call({FileDto? file, AssetEntity? asset, String? path, List? bytes}); WebSendFileCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _WebSendFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebSendFile, $Out> implements WebSendFileCopyWith<$R, WebSendFile, $Out> { +class _WebSendFileCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, WebSendFile, $Out> + implements WebSendFileCopyWith<$R, WebSendFile, $Out> { _WebSendFileCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = WebSendFileMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + WebSendFileMapper.ensureInitialized(); @override ListCopyWith<$R, int, ObjectCopyWith<$R, int, int>>? get bytes => - $value.bytes != null ? ListCopyWith($value.bytes!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(bytes: v)) : null; + $value.bytes != null + ? ListCopyWith($value.bytes!, + (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(bytes: v)) + : null; @override - $R call({FileDto? file, Object? asset = $none, Object? path = $none, Object? bytes = $none}) => $apply(FieldCopyWithData( - {if (file != null) #file: file, if (asset != $none) #asset: asset, if (path != $none) #path: path, if (bytes != $none) #bytes: bytes})); + $R call( + {FileDto? file, + Object? asset = $none, + Object? path = $none, + Object? bytes = $none}) => + $apply(FieldCopyWithData({ + if (file != null) #file: file, + if (asset != $none) #asset: asset, + if (path != $none) #path: path, + if (bytes != $none) #bytes: bytes + })); @override WebSendFile $make(CopyWithData data) => WebSendFile( file: data.get(#file, or: $value.file), @@ -108,5 +136,7 @@ class _WebSendFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebSendFi bytes: data.get(#bytes, or: $value.bytes)); @override - WebSendFileCopyWith<$R2, WebSendFile, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _WebSendFileCopyWithImpl($value, $cast, t); + WebSendFileCopyWith<$R2, WebSendFile, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _WebSendFileCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/send/web/web_send_session.mapper.dart b/app/lib/model/state/send/web/web_send_session.mapper.dart index 6aa91de8..3f75661b 100644 --- a/app/lib/model/state/send/web/web_send_session.mapper.dart +++ b/app/lib/model/state/send/web/web_send_session.mapper.dart @@ -21,13 +21,17 @@ class WebSendSessionMapper extends ClassMapperBase { final String id = 'WebSendSession'; static String _$sessionId(WebSendSession v) => v.sessionId; - static const Field _f$sessionId = Field('sessionId', _$sessionId); - static StreamController? _$responseHandler(WebSendSession v) => v.responseHandler; - static const Field> _f$responseHandler = Field('responseHandler', _$responseHandler); + static const Field _f$sessionId = + Field('sessionId', _$sessionId); + static StreamController? _$responseHandler(WebSendSession v) => + v.responseHandler; + static const Field> + _f$responseHandler = Field('responseHandler', _$responseHandler); static String _$ip(WebSendSession v) => v.ip; static const Field _f$ip = Field('ip', _$ip); static String _$deviceInfo(WebSendSession v) => v.deviceInfo; - static const Field _f$deviceInfo = Field('deviceInfo', _$deviceInfo); + static const Field _f$deviceInfo = + Field('deviceInfo', _$deviceInfo); @override final MappableFields fields = const { @@ -39,7 +43,10 @@ class WebSendSessionMapper extends ClassMapperBase { static WebSendSession _instantiate(DecodingData data) { return WebSendSession( - sessionId: data.dec(_f$sessionId), responseHandler: data.dec(_f$responseHandler), ip: data.dec(_f$ip), deviceInfo: data.dec(_f$deviceInfo)); + sessionId: data.dec(_f$sessionId), + responseHandler: data.dec(_f$responseHandler), + ip: data.dec(_f$ip), + deviceInfo: data.dec(_f$deviceInfo)); } @override @@ -56,48 +63,69 @@ class WebSendSessionMapper extends ClassMapperBase { mixin WebSendSessionMappable { String serialize() { - return WebSendSessionMapper.ensureInitialized().encodeJson(this as WebSendSession); + return WebSendSessionMapper.ensureInitialized() + .encodeJson(this as WebSendSession); } Map toJson() { - return WebSendSessionMapper.ensureInitialized().encodeMap(this as WebSendSession); + return WebSendSessionMapper.ensureInitialized() + .encodeMap(this as WebSendSession); } - WebSendSessionCopyWith get copyWith => - _WebSendSessionCopyWithImpl(this as WebSendSession, $identity, $identity); + WebSendSessionCopyWith + get copyWith => _WebSendSessionCopyWithImpl( + this as WebSendSession, $identity, $identity); @override String toString() { - return WebSendSessionMapper.ensureInitialized().stringifyValue(this as WebSendSession); + return WebSendSessionMapper.ensureInitialized() + .stringifyValue(this as WebSendSession); } @override bool operator ==(Object other) { - return WebSendSessionMapper.ensureInitialized().equalsValue(this as WebSendSession, other); + return WebSendSessionMapper.ensureInitialized() + .equalsValue(this as WebSendSession, other); } @override int get hashCode { - return WebSendSessionMapper.ensureInitialized().hashValue(this as WebSendSession); + return WebSendSessionMapper.ensureInitialized() + .hashValue(this as WebSendSession); } } -extension WebSendSessionValueCopy<$R, $Out> on ObjectCopyWith<$R, WebSendSession, $Out> { - WebSendSessionCopyWith<$R, WebSendSession, $Out> get $asWebSendSession => $base.as((v, t, t2) => _WebSendSessionCopyWithImpl(v, t, t2)); +extension WebSendSessionValueCopy<$R, $Out> + on ObjectCopyWith<$R, WebSendSession, $Out> { + WebSendSessionCopyWith<$R, WebSendSession, $Out> get $asWebSendSession => + $base.as((v, t, t2) => _WebSendSessionCopyWithImpl(v, t, t2)); } -abstract class WebSendSessionCopyWith<$R, $In extends WebSendSession, $Out> implements ClassCopyWith<$R, $In, $Out> { - $R call({String? sessionId, StreamController? responseHandler, String? ip, String? deviceInfo}); - WebSendSessionCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); +abstract class WebSendSessionCopyWith<$R, $In extends WebSendSession, $Out> + implements ClassCopyWith<$R, $In, $Out> { + $R call( + {String? sessionId, + StreamController? responseHandler, + String? ip, + String? deviceInfo}); + WebSendSessionCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _WebSendSessionCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebSendSession, $Out> +class _WebSendSessionCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, WebSendSession, $Out> implements WebSendSessionCopyWith<$R, WebSendSession, $Out> { _WebSendSessionCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = WebSendSessionMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + WebSendSessionMapper.ensureInitialized(); @override - $R call({String? sessionId, Object? responseHandler = $none, String? ip, String? deviceInfo}) => $apply(FieldCopyWithData({ + $R call( + {String? sessionId, + Object? responseHandler = $none, + String? ip, + String? deviceInfo}) => + $apply(FieldCopyWithData({ if (sessionId != null) #sessionId: sessionId, if (responseHandler != $none) #responseHandler: responseHandler, if (ip != null) #ip: ip, @@ -111,5 +139,7 @@ class _WebSendSessionCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebSen deviceInfo: data.get(#deviceInfo, or: $value.deviceInfo)); @override - WebSendSessionCopyWith<$R2, WebSendSession, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _WebSendSessionCopyWithImpl($value, $cast, t); + WebSendSessionCopyWith<$R2, WebSendSession, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _WebSendSessionCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/send/web/web_send_state.mapper.dart b/app/lib/model/state/send/web/web_send_state.mapper.dart index c96ccbe5..3150f2ba 100644 --- a/app/lib/model/state/send/web/web_send_state.mapper.dart +++ b/app/lib/model/state/send/web/web_send_state.mapper.dart @@ -23,15 +23,19 @@ class WebSendStateMapper extends ClassMapperBase { final String id = 'WebSendState'; static Map _$sessions(WebSendState v) => v.sessions; - static const Field> _f$sessions = Field('sessions', _$sessions); + static const Field> _f$sessions = + Field('sessions', _$sessions); static Map _$files(WebSendState v) => v.files; - static const Field> _f$files = Field('files', _$files); + static const Field> _f$files = + Field('files', _$files); static bool _$autoAccept(WebSendState v) => v.autoAccept; - static const Field _f$autoAccept = Field('autoAccept', _$autoAccept); + static const Field _f$autoAccept = + Field('autoAccept', _$autoAccept); static String? _$pin(WebSendState v) => v.pin; static const Field _f$pin = Field('pin', _$pin); static Map _$pinAttempts(WebSendState v) => v.pinAttempts; - static const Field> _f$pinAttempts = Field('pinAttempts', _$pinAttempts); + static const Field> _f$pinAttempts = + Field('pinAttempts', _$pinAttempts); @override final MappableFields fields = const { @@ -65,57 +69,80 @@ class WebSendStateMapper extends ClassMapperBase { mixin WebSendStateMappable { String serialize() { - return WebSendStateMapper.ensureInitialized().encodeJson(this as WebSendState); + return WebSendStateMapper.ensureInitialized() + .encodeJson(this as WebSendState); } Map toJson() { - return WebSendStateMapper.ensureInitialized().encodeMap(this as WebSendState); + return WebSendStateMapper.ensureInitialized() + .encodeMap(this as WebSendState); } WebSendStateCopyWith get copyWith => _WebSendStateCopyWithImpl(this as WebSendState, $identity, $identity); @override String toString() { - return WebSendStateMapper.ensureInitialized().stringifyValue(this as WebSendState); + return WebSendStateMapper.ensureInitialized() + .stringifyValue(this as WebSendState); } @override bool operator ==(Object other) { - return WebSendStateMapper.ensureInitialized().equalsValue(this as WebSendState, other); + return WebSendStateMapper.ensureInitialized() + .equalsValue(this as WebSendState, other); } @override int get hashCode { - return WebSendStateMapper.ensureInitialized().hashValue(this as WebSendState); + return WebSendStateMapper.ensureInitialized() + .hashValue(this as WebSendState); } } -extension WebSendStateValueCopy<$R, $Out> on ObjectCopyWith<$R, WebSendState, $Out> { - WebSendStateCopyWith<$R, WebSendState, $Out> get $asWebSendState => $base.as((v, t, t2) => _WebSendStateCopyWithImpl(v, t, t2)); +extension WebSendStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, WebSendState, $Out> { + WebSendStateCopyWith<$R, WebSendState, $Out> get $asWebSendState => + $base.as((v, t, t2) => _WebSendStateCopyWithImpl(v, t, t2)); } -abstract class WebSendStateCopyWith<$R, $In extends WebSendState, $Out> implements ClassCopyWith<$R, $In, $Out> { - MapCopyWith<$R, String, WebSendSession, WebSendSessionCopyWith<$R, WebSendSession, WebSendSession>> get sessions; - MapCopyWith<$R, String, WebSendFile, WebSendFileCopyWith<$R, WebSendFile, WebSendFile>> get files; +abstract class WebSendStateCopyWith<$R, $In extends WebSendState, $Out> + implements ClassCopyWith<$R, $In, $Out> { + MapCopyWith<$R, String, WebSendSession, + WebSendSessionCopyWith<$R, WebSendSession, WebSendSession>> get sessions; + MapCopyWith<$R, String, WebSendFile, + WebSendFileCopyWith<$R, WebSendFile, WebSendFile>> get files; MapCopyWith<$R, String, int, ObjectCopyWith<$R, int, int>> get pinAttempts; - $R call({Map? sessions, Map? files, bool? autoAccept, String? pin, Map? pinAttempts}); + $R call( + {Map? sessions, + Map? files, + bool? autoAccept, + String? pin, + Map? pinAttempts}); WebSendStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _WebSendStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebSendState, $Out> implements WebSendStateCopyWith<$R, WebSendState, $Out> { +class _WebSendStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, WebSendState, $Out> + implements WebSendStateCopyWith<$R, WebSendState, $Out> { _WebSendStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = WebSendStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + WebSendStateMapper.ensureInitialized(); @override - MapCopyWith<$R, String, WebSendSession, WebSendSessionCopyWith<$R, WebSendSession, WebSendSession>> get sessions => - MapCopyWith($value.sessions, (v, t) => v.copyWith.$chain(t), (v) => call(sessions: v)); + MapCopyWith<$R, String, WebSendSession, + WebSendSessionCopyWith<$R, WebSendSession, WebSendSession>> + get sessions => MapCopyWith($value.sessions, + (v, t) => v.copyWith.$chain(t), (v) => call(sessions: v)); @override - MapCopyWith<$R, String, WebSendFile, WebSendFileCopyWith<$R, WebSendFile, WebSendFile>> get files => - MapCopyWith($value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); + MapCopyWith<$R, String, WebSendFile, + WebSendFileCopyWith<$R, WebSendFile, WebSendFile>> + get files => MapCopyWith( + $value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); @override MapCopyWith<$R, String, int, ObjectCopyWith<$R, int, int>> get pinAttempts => - MapCopyWith($value.pinAttempts, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(pinAttempts: v)); + MapCopyWith($value.pinAttempts, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(pinAttempts: v)); @override $R call( {Map? sessions, @@ -139,5 +166,7 @@ class _WebSendStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebSendS pinAttempts: data.get(#pinAttempts, or: $value.pinAttempts)); @override - WebSendStateCopyWith<$R2, WebSendState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _WebSendStateCopyWithImpl($value, $cast, t); + WebSendStateCopyWith<$R2, WebSendState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _WebSendStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/server/receive_session_state.mapper.dart b/app/lib/model/state/server/receive_session_state.mapper.dart index a421144f..d94c51c6 100644 --- a/app/lib/model/state/server/receive_session_state.mapper.dart +++ b/app/lib/model/state/server/receive_session_state.mapper.dart @@ -23,29 +23,46 @@ class ReceiveSessionStateMapper extends ClassMapperBase { final String id = 'ReceiveSessionState'; static String _$sessionId(ReceiveSessionState v) => v.sessionId; - static const Field _f$sessionId = Field('sessionId', _$sessionId); + static const Field _f$sessionId = + Field('sessionId', _$sessionId); static SessionStatus _$status(ReceiveSessionState v) => v.status; - static const Field _f$status = Field('status', _$status); + static const Field _f$status = + Field('status', _$status); static Device _$sender(ReceiveSessionState v) => v.sender; - static const Field _f$sender = Field('sender', _$sender); + static const Field _f$sender = + Field('sender', _$sender); static String _$senderAlias(ReceiveSessionState v) => v.senderAlias; - static const Field _f$senderAlias = Field('senderAlias', _$senderAlias); + static const Field _f$senderAlias = + Field('senderAlias', _$senderAlias); static Map _$files(ReceiveSessionState v) => v.files; - static const Field> _f$files = Field('files', _$files); + static const Field> _f$files = + Field('files', _$files); static int? _$startTime(ReceiveSessionState v) => v.startTime; - static const Field _f$startTime = Field('startTime', _$startTime); + static const Field _f$startTime = + Field('startTime', _$startTime); static int? _$endTime(ReceiveSessionState v) => v.endTime; - static const Field _f$endTime = Field('endTime', _$endTime); - static String _$destinationDirectory(ReceiveSessionState v) => v.destinationDirectory; - static const Field _f$destinationDirectory = Field('destinationDirectory', _$destinationDirectory); + static const Field _f$endTime = + Field('endTime', _$endTime); + static String _$destinationDirectory(ReceiveSessionState v) => + v.destinationDirectory; + static const Field _f$destinationDirectory = + Field('destinationDirectory', _$destinationDirectory); static String _$cacheDirectory(ReceiveSessionState v) => v.cacheDirectory; - static const Field _f$cacheDirectory = Field('cacheDirectory', _$cacheDirectory); + static const Field _f$cacheDirectory = + Field('cacheDirectory', _$cacheDirectory); static bool _$saveToGallery(ReceiveSessionState v) => v.saveToGallery; - static const Field _f$saveToGallery = Field('saveToGallery', _$saveToGallery); - static Set _$createdDirectories(ReceiveSessionState v) => v.createdDirectories; - static const Field> _f$createdDirectories = Field('createdDirectories', _$createdDirectories); - static StreamController?>? _$responseHandler(ReceiveSessionState v) => v.responseHandler; - static const Field?>> _f$responseHandler = Field('responseHandler', _$responseHandler); + static const Field _f$saveToGallery = + Field('saveToGallery', _$saveToGallery); + static Set _$createdDirectories(ReceiveSessionState v) => + v.createdDirectories; + static const Field> _f$createdDirectories = + Field('createdDirectories', _$createdDirectories); + static StreamController?>? _$responseHandler( + ReceiveSessionState v) => + v.responseHandler; + static const Field?>> _f$responseHandler = + Field('responseHandler', _$responseHandler); @override final MappableFields fields = const { @@ -93,39 +110,50 @@ class ReceiveSessionStateMapper extends ClassMapperBase { mixin ReceiveSessionStateMappable { String serialize() { - return ReceiveSessionStateMapper.ensureInitialized().encodeJson(this as ReceiveSessionState); + return ReceiveSessionStateMapper.ensureInitialized() + .encodeJson(this as ReceiveSessionState); } Map toJson() { - return ReceiveSessionStateMapper.ensureInitialized().encodeMap(this as ReceiveSessionState); + return ReceiveSessionStateMapper.ensureInitialized() + .encodeMap(this as ReceiveSessionState); } - ReceiveSessionStateCopyWith get copyWith => - _ReceiveSessionStateCopyWithImpl(this as ReceiveSessionState, $identity, $identity); + ReceiveSessionStateCopyWith + get copyWith => _ReceiveSessionStateCopyWithImpl( + this as ReceiveSessionState, $identity, $identity); @override String toString() { - return ReceiveSessionStateMapper.ensureInitialized().stringifyValue(this as ReceiveSessionState); + return ReceiveSessionStateMapper.ensureInitialized() + .stringifyValue(this as ReceiveSessionState); } @override bool operator ==(Object other) { - return ReceiveSessionStateMapper.ensureInitialized().equalsValue(this as ReceiveSessionState, other); + return ReceiveSessionStateMapper.ensureInitialized() + .equalsValue(this as ReceiveSessionState, other); } @override int get hashCode { - return ReceiveSessionStateMapper.ensureInitialized().hashValue(this as ReceiveSessionState); + return ReceiveSessionStateMapper.ensureInitialized() + .hashValue(this as ReceiveSessionState); } } -extension ReceiveSessionStateValueCopy<$R, $Out> on ObjectCopyWith<$R, ReceiveSessionState, $Out> { - ReceiveSessionStateCopyWith<$R, ReceiveSessionState, $Out> get $asReceiveSessionState => - $base.as((v, t, t2) => _ReceiveSessionStateCopyWithImpl(v, t, t2)); +extension ReceiveSessionStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, ReceiveSessionState, $Out> { + ReceiveSessionStateCopyWith<$R, ReceiveSessionState, $Out> + get $asReceiveSessionState => + $base.as((v, t, t2) => _ReceiveSessionStateCopyWithImpl(v, t, t2)); } -abstract class ReceiveSessionStateCopyWith<$R, $In extends ReceiveSessionState, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class ReceiveSessionStateCopyWith<$R, $In extends ReceiveSessionState, + $Out> implements ClassCopyWith<$R, $In, $Out> { DeviceCopyWith<$R, Device, Device> get sender; - MapCopyWith<$R, String, ReceivingFile, ReceivingFileCopyWith<$R, ReceivingFile, ReceivingFile>> get files; + MapCopyWith<$R, String, ReceivingFile, + ReceivingFileCopyWith<$R, ReceivingFile, ReceivingFile>> get files; $R call( {String? sessionId, SessionStatus? status, @@ -139,20 +167,26 @@ abstract class ReceiveSessionStateCopyWith<$R, $In extends ReceiveSessionState, bool? saveToGallery, Set? createdDirectories, StreamController?>? responseHandler}); - ReceiveSessionStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + ReceiveSessionStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _ReceiveSessionStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ReceiveSessionState, $Out> +class _ReceiveSessionStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ReceiveSessionState, $Out> implements ReceiveSessionStateCopyWith<$R, ReceiveSessionState, $Out> { _ReceiveSessionStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ReceiveSessionStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ReceiveSessionStateMapper.ensureInitialized(); @override - DeviceCopyWith<$R, Device, Device> get sender => $value.sender.copyWith.$chain((v) => call(sender: v)); + DeviceCopyWith<$R, Device, Device> get sender => + $value.sender.copyWith.$chain((v) => call(sender: v)); @override - MapCopyWith<$R, String, ReceivingFile, ReceivingFileCopyWith<$R, ReceivingFile, ReceivingFile>> get files => - MapCopyWith($value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); + MapCopyWith<$R, String, ReceivingFile, + ReceivingFileCopyWith<$R, ReceivingFile, ReceivingFile>> + get files => MapCopyWith( + $value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); @override $R call( {String? sessionId, @@ -175,7 +209,8 @@ class _ReceiveSessionStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, R if (files != null) #files: files, if (startTime != $none) #startTime: startTime, if (endTime != $none) #endTime: endTime, - if (destinationDirectory != null) #destinationDirectory: destinationDirectory, + if (destinationDirectory != null) + #destinationDirectory: destinationDirectory, if (cacheDirectory != null) #cacheDirectory: cacheDirectory, if (saveToGallery != null) #saveToGallery: saveToGallery, if (createdDirectories != null) #createdDirectories: createdDirectories, @@ -190,13 +225,16 @@ class _ReceiveSessionStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, R files: data.get(#files, or: $value.files), startTime: data.get(#startTime, or: $value.startTime), endTime: data.get(#endTime, or: $value.endTime), - destinationDirectory: data.get(#destinationDirectory, or: $value.destinationDirectory), + destinationDirectory: + data.get(#destinationDirectory, or: $value.destinationDirectory), cacheDirectory: data.get(#cacheDirectory, or: $value.cacheDirectory), saveToGallery: data.get(#saveToGallery, or: $value.saveToGallery), - createdDirectories: data.get(#createdDirectories, or: $value.createdDirectories), + createdDirectories: + data.get(#createdDirectories, or: $value.createdDirectories), responseHandler: data.get(#responseHandler, or: $value.responseHandler)); @override - ReceiveSessionStateCopyWith<$R2, ReceiveSessionState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _ReceiveSessionStateCopyWithImpl($value, $cast, t); + ReceiveSessionStateCopyWith<$R2, ReceiveSessionState, $Out2> + $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _ReceiveSessionStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/server/receiving_file.mapper.dart b/app/lib/model/state/server/receiving_file.mapper.dart index 3b99d4e0..d898d63a 100644 --- a/app/lib/model/state/server/receiving_file.mapper.dart +++ b/app/lib/model/state/server/receiving_file.mapper.dart @@ -23,17 +23,21 @@ class ReceivingFileMapper extends ClassMapperBase { static FileDto _$file(ReceivingFile v) => v.file; static const Field _f$file = Field('file', _$file); static FileStatus _$status(ReceivingFile v) => v.status; - static const Field _f$status = Field('status', _$status); + static const Field _f$status = + Field('status', _$status); static String? _$token(ReceivingFile v) => v.token; static const Field _f$token = Field('token', _$token); static String? _$desiredName(ReceivingFile v) => v.desiredName; - static const Field _f$desiredName = Field('desiredName', _$desiredName); + static const Field _f$desiredName = + Field('desiredName', _$desiredName); static String? _$path(ReceivingFile v) => v.path; static const Field _f$path = Field('path', _$path); static bool _$savedToGallery(ReceivingFile v) => v.savedToGallery; - static const Field _f$savedToGallery = Field('savedToGallery', _$savedToGallery); + static const Field _f$savedToGallery = + Field('savedToGallery', _$savedToGallery); static String? _$errorMessage(ReceivingFile v) => v.errorMessage; - static const Field _f$errorMessage = Field('errorMessage', _$errorMessage); + static const Field _f$errorMessage = + Field('errorMessage', _$errorMessage); @override final MappableFields fields = const { @@ -71,46 +75,64 @@ class ReceivingFileMapper extends ClassMapperBase { mixin ReceivingFileMappable { String serialize() { - return ReceivingFileMapper.ensureInitialized().encodeJson(this as ReceivingFile); + return ReceivingFileMapper.ensureInitialized() + .encodeJson(this as ReceivingFile); } Map toJson() { - return ReceivingFileMapper.ensureInitialized().encodeMap(this as ReceivingFile); + return ReceivingFileMapper.ensureInitialized() + .encodeMap(this as ReceivingFile); } - ReceivingFileCopyWith get copyWith => - _ReceivingFileCopyWithImpl(this as ReceivingFile, $identity, $identity); + ReceivingFileCopyWith + get copyWith => _ReceivingFileCopyWithImpl( + this as ReceivingFile, $identity, $identity); @override String toString() { - return ReceivingFileMapper.ensureInitialized().stringifyValue(this as ReceivingFile); + return ReceivingFileMapper.ensureInitialized() + .stringifyValue(this as ReceivingFile); } @override bool operator ==(Object other) { - return ReceivingFileMapper.ensureInitialized().equalsValue(this as ReceivingFile, other); + return ReceivingFileMapper.ensureInitialized() + .equalsValue(this as ReceivingFile, other); } @override int get hashCode { - return ReceivingFileMapper.ensureInitialized().hashValue(this as ReceivingFile); + return ReceivingFileMapper.ensureInitialized() + .hashValue(this as ReceivingFile); } } -extension ReceivingFileValueCopy<$R, $Out> on ObjectCopyWith<$R, ReceivingFile, $Out> { - ReceivingFileCopyWith<$R, ReceivingFile, $Out> get $asReceivingFile => $base.as((v, t, t2) => _ReceivingFileCopyWithImpl(v, t, t2)); +extension ReceivingFileValueCopy<$R, $Out> + on ObjectCopyWith<$R, ReceivingFile, $Out> { + ReceivingFileCopyWith<$R, ReceivingFile, $Out> get $asReceivingFile => + $base.as((v, t, t2) => _ReceivingFileCopyWithImpl(v, t, t2)); } -abstract class ReceivingFileCopyWith<$R, $In extends ReceivingFile, $Out> implements ClassCopyWith<$R, $In, $Out> { - $R call({FileDto? file, FileStatus? status, String? token, String? desiredName, String? path, bool? savedToGallery, String? errorMessage}); +abstract class ReceivingFileCopyWith<$R, $In extends ReceivingFile, $Out> + implements ClassCopyWith<$R, $In, $Out> { + $R call( + {FileDto? file, + FileStatus? status, + String? token, + String? desiredName, + String? path, + bool? savedToGallery, + String? errorMessage}); ReceivingFileCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ReceivingFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ReceivingFile, $Out> +class _ReceivingFileCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ReceivingFile, $Out> implements ReceivingFileCopyWith<$R, ReceivingFile, $Out> { _ReceivingFileCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ReceivingFileMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ReceivingFileMapper.ensureInitialized(); @override $R call( {FileDto? file, @@ -140,5 +162,7 @@ class _ReceivingFileCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Receivi errorMessage: data.get(#errorMessage, or: $value.errorMessage)); @override - ReceivingFileCopyWith<$R2, ReceivingFile, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ReceivingFileCopyWithImpl($value, $cast, t); + ReceivingFileCopyWith<$R2, ReceivingFile, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _ReceivingFileCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/server/server_state.mapper.dart b/app/lib/model/state/server/server_state.mapper.dart index 4d44dc78..ceb15f41 100644 --- a/app/lib/model/state/server/server_state.mapper.dart +++ b/app/lib/model/state/server/server_state.mapper.dart @@ -23,7 +23,8 @@ class ServerStateMapper extends ClassMapperBase { final String id = 'ServerState'; static SimpleServer _$httpServer(ServerState v) => v.httpServer; - static const Field _f$httpServer = Field('httpServer', _$httpServer); + static const Field _f$httpServer = + Field('httpServer', _$httpServer); static String _$alias(ServerState v) => v.alias; static const Field _f$alias = Field('alias', _$alias); static int _$port(ServerState v) => v.port; @@ -31,11 +32,14 @@ class ServerStateMapper extends ClassMapperBase { static bool _$https(ServerState v) => v.https; static const Field _f$https = Field('https', _$https); static ReceiveSessionState? _$session(ServerState v) => v.session; - static const Field _f$session = Field('session', _$session); + static const Field _f$session = + Field('session', _$session); static WebSendState? _$webSendState(ServerState v) => v.webSendState; - static const Field _f$webSendState = Field('webSendState', _$webSendState); + static const Field _f$webSendState = + Field('webSendState', _$webSendState); static Map _$pinAttempts(ServerState v) => v.pinAttempts; - static const Field> _f$pinAttempts = Field('pinAttempts', _$pinAttempts); + static const Field> _f$pinAttempts = + Field('pinAttempts', _$pinAttempts); @override final MappableFields fields = const { @@ -73,22 +77,27 @@ class ServerStateMapper extends ClassMapperBase { mixin ServerStateMappable { String serialize() { - return ServerStateMapper.ensureInitialized().encodeJson(this as ServerState); + return ServerStateMapper.ensureInitialized() + .encodeJson(this as ServerState); } Map toJson() { - return ServerStateMapper.ensureInitialized().encodeMap(this as ServerState); + return ServerStateMapper.ensureInitialized() + .encodeMap(this as ServerState); } - ServerStateCopyWith get copyWith => _ServerStateCopyWithImpl(this as ServerState, $identity, $identity); + ServerStateCopyWith get copyWith => + _ServerStateCopyWithImpl(this as ServerState, $identity, $identity); @override String toString() { - return ServerStateMapper.ensureInitialized().stringifyValue(this as ServerState); + return ServerStateMapper.ensureInitialized() + .stringifyValue(this as ServerState); } @override bool operator ==(Object other) { - return ServerStateMapper.ensureInitialized().equalsValue(this as ServerState, other); + return ServerStateMapper.ensureInitialized() + .equalsValue(this as ServerState, other); } @override @@ -97,12 +106,16 @@ mixin ServerStateMappable { } } -extension ServerStateValueCopy<$R, $Out> on ObjectCopyWith<$R, ServerState, $Out> { - ServerStateCopyWith<$R, ServerState, $Out> get $asServerState => $base.as((v, t, t2) => _ServerStateCopyWithImpl(v, t, t2)); +extension ServerStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, ServerState, $Out> { + ServerStateCopyWith<$R, ServerState, $Out> get $asServerState => + $base.as((v, t, t2) => _ServerStateCopyWithImpl(v, t, t2)); } -abstract class ServerStateCopyWith<$R, $In extends ServerState, $Out> implements ClassCopyWith<$R, $In, $Out> { - ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? get session; +abstract class ServerStateCopyWith<$R, $In extends ServerState, $Out> + implements ClassCopyWith<$R, $In, $Out> { + ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? + get session; WebSendStateCopyWith<$R, WebSendState, WebSendState>? get webSendState; MapCopyWith<$R, String, int, ObjectCopyWith<$R, int, int>> get pinAttempts; $R call( @@ -116,18 +129,24 @@ abstract class ServerStateCopyWith<$R, $In extends ServerState, $Out> implements ServerStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ServerStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ServerState, $Out> implements ServerStateCopyWith<$R, ServerState, $Out> { +class _ServerStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ServerState, $Out> + implements ServerStateCopyWith<$R, ServerState, $Out> { _ServerStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ServerStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ServerStateMapper.ensureInitialized(); @override - ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? get session => $value.session?.copyWith.$chain((v) => call(session: v)); + ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? + get session => $value.session?.copyWith.$chain((v) => call(session: v)); @override - WebSendStateCopyWith<$R, WebSendState, WebSendState>? get webSendState => $value.webSendState?.copyWith.$chain((v) => call(webSendState: v)); + WebSendStateCopyWith<$R, WebSendState, WebSendState>? get webSendState => + $value.webSendState?.copyWith.$chain((v) => call(webSendState: v)); @override MapCopyWith<$R, String, int, ObjectCopyWith<$R, int, int>> get pinAttempts => - MapCopyWith($value.pinAttempts, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(pinAttempts: v)); + MapCopyWith($value.pinAttempts, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(pinAttempts: v)); @override $R call( {SimpleServer? httpServer, @@ -157,5 +176,7 @@ class _ServerStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ServerSta pinAttempts: data.get(#pinAttempts, or: $value.pinAttempts)); @override - ServerStateCopyWith<$R2, ServerState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ServerStateCopyWithImpl($value, $cast, t); + ServerStateCopyWith<$R2, ServerState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _ServerStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/model/state/settings_state.mapper.dart b/app/lib/model/state/settings_state.mapper.dart index 7d31759b..540679a3 100644 --- a/app/lib/model/state/settings_state.mapper.dart +++ b/app/lib/model/state/settings_state.mapper.dart @@ -22,57 +22,84 @@ class SettingsStateMapper extends ClassMapperBase { final String id = 'SettingsState'; static String _$showToken(SettingsState v) => v.showToken; - static const Field _f$showToken = Field('showToken', _$showToken); + static const Field _f$showToken = + Field('showToken', _$showToken); static String _$alias(SettingsState v) => v.alias; static const Field _f$alias = Field('alias', _$alias); static ThemeMode _$theme(SettingsState v) => v.theme; - static const Field _f$theme = Field('theme', _$theme); + static const Field _f$theme = + Field('theme', _$theme); static ColorMode _$colorMode(SettingsState v) => v.colorMode; - static const Field _f$colorMode = Field('colorMode', _$colorMode); + static const Field _f$colorMode = + Field('colorMode', _$colorMode); static AppLocale? _$locale(SettingsState v) => v.locale; - static const Field _f$locale = Field('locale', _$locale); + static const Field _f$locale = + Field('locale', _$locale); static int _$port(SettingsState v) => v.port; static const Field _f$port = Field('port', _$port); - static List? _$networkWhitelist(SettingsState v) => v.networkWhitelist; - static const Field> _f$networkWhitelist = Field('networkWhitelist', _$networkWhitelist); - static List? _$networkBlacklist(SettingsState v) => v.networkBlacklist; - static const Field> _f$networkBlacklist = Field('networkBlacklist', _$networkBlacklist); + static List? _$networkWhitelist(SettingsState v) => + v.networkWhitelist; + static const Field> _f$networkWhitelist = + Field('networkWhitelist', _$networkWhitelist); + static List? _$networkBlacklist(SettingsState v) => + v.networkBlacklist; + static const Field> _f$networkBlacklist = + Field('networkBlacklist', _$networkBlacklist); static String _$multicastGroup(SettingsState v) => v.multicastGroup; - static const Field _f$multicastGroup = Field('multicastGroup', _$multicastGroup); + static const Field _f$multicastGroup = + Field('multicastGroup', _$multicastGroup); static String? _$destination(SettingsState v) => v.destination; - static const Field _f$destination = Field('destination', _$destination); + static const Field _f$destination = + Field('destination', _$destination); static bool _$saveToGallery(SettingsState v) => v.saveToGallery; - static const Field _f$saveToGallery = Field('saveToGallery', _$saveToGallery); + static const Field _f$saveToGallery = + Field('saveToGallery', _$saveToGallery); static bool _$saveToHistory(SettingsState v) => v.saveToHistory; - static const Field _f$saveToHistory = Field('saveToHistory', _$saveToHistory); + static const Field _f$saveToHistory = + Field('saveToHistory', _$saveToHistory); static bool _$quickSave(SettingsState v) => v.quickSave; - static const Field _f$quickSave = Field('quickSave', _$quickSave); - static bool _$quickSaveFromFavorites(SettingsState v) => v.quickSaveFromFavorites; - static const Field _f$quickSaveFromFavorites = Field('quickSaveFromFavorites', _$quickSaveFromFavorites); + static const Field _f$quickSave = + Field('quickSave', _$quickSave); + static bool _$quickSaveFromFavorites(SettingsState v) => + v.quickSaveFromFavorites; + static const Field _f$quickSaveFromFavorites = + Field('quickSaveFromFavorites', _$quickSaveFromFavorites); static String? _$receivePin(SettingsState v) => v.receivePin; - static const Field _f$receivePin = Field('receivePin', _$receivePin); + static const Field _f$receivePin = + Field('receivePin', _$receivePin); static bool _$autoFinish(SettingsState v) => v.autoFinish; - static const Field _f$autoFinish = Field('autoFinish', _$autoFinish); + static const Field _f$autoFinish = + Field('autoFinish', _$autoFinish); static bool _$minimizeToTray(SettingsState v) => v.minimizeToTray; - static const Field _f$minimizeToTray = Field('minimizeToTray', _$minimizeToTray); + static const Field _f$minimizeToTray = + Field('minimizeToTray', _$minimizeToTray); static bool _$https(SettingsState v) => v.https; static const Field _f$https = Field('https', _$https); static SendMode _$sendMode(SettingsState v) => v.sendMode; - static const Field _f$sendMode = Field('sendMode', _$sendMode); + static const Field _f$sendMode = + Field('sendMode', _$sendMode); static bool _$saveWindowPlacement(SettingsState v) => v.saveWindowPlacement; - static const Field _f$saveWindowPlacement = Field('saveWindowPlacement', _$saveWindowPlacement); + static const Field _f$saveWindowPlacement = + Field('saveWindowPlacement', _$saveWindowPlacement); static bool _$enableAnimations(SettingsState v) => v.enableAnimations; - static const Field _f$enableAnimations = Field('enableAnimations', _$enableAnimations); + static const Field _f$enableAnimations = + Field('enableAnimations', _$enableAnimations); static DeviceType? _$deviceType(SettingsState v) => v.deviceType; - static const Field _f$deviceType = Field('deviceType', _$deviceType); + static const Field _f$deviceType = + Field('deviceType', _$deviceType); static String? _$deviceModel(SettingsState v) => v.deviceModel; - static const Field _f$deviceModel = Field('deviceModel', _$deviceModel); - static bool _$shareViaLinkAutoAccept(SettingsState v) => v.shareViaLinkAutoAccept; - static const Field _f$shareViaLinkAutoAccept = Field('shareViaLinkAutoAccept', _$shareViaLinkAutoAccept); + static const Field _f$deviceModel = + Field('deviceModel', _$deviceModel); + static bool _$shareViaLinkAutoAccept(SettingsState v) => + v.shareViaLinkAutoAccept; + static const Field _f$shareViaLinkAutoAccept = + Field('shareViaLinkAutoAccept', _$shareViaLinkAutoAccept); static int _$discoveryTimeout(SettingsState v) => v.discoveryTimeout; - static const Field _f$discoveryTimeout = Field('discoveryTimeout', _$discoveryTimeout); + static const Field _f$discoveryTimeout = + Field('discoveryTimeout', _$discoveryTimeout); static bool _$advancedSettings(SettingsState v) => v.advancedSettings; - static const Field _f$advancedSettings = Field('advancedSettings', _$advancedSettings); + static const Field _f$advancedSettings = + Field('advancedSettings', _$advancedSettings); @override final MappableFields fields = const { @@ -148,38 +175,49 @@ class SettingsStateMapper extends ClassMapperBase { mixin SettingsStateMappable { String serialize() { - return SettingsStateMapper.ensureInitialized().encodeJson(this as SettingsState); + return SettingsStateMapper.ensureInitialized() + .encodeJson(this as SettingsState); } Map toJson() { - return SettingsStateMapper.ensureInitialized().encodeMap(this as SettingsState); + return SettingsStateMapper.ensureInitialized() + .encodeMap(this as SettingsState); } - SettingsStateCopyWith get copyWith => - _SettingsStateCopyWithImpl(this as SettingsState, $identity, $identity); + SettingsStateCopyWith + get copyWith => _SettingsStateCopyWithImpl( + this as SettingsState, $identity, $identity); @override String toString() { - return SettingsStateMapper.ensureInitialized().stringifyValue(this as SettingsState); + return SettingsStateMapper.ensureInitialized() + .stringifyValue(this as SettingsState); } @override bool operator ==(Object other) { - return SettingsStateMapper.ensureInitialized().equalsValue(this as SettingsState, other); + return SettingsStateMapper.ensureInitialized() + .equalsValue(this as SettingsState, other); } @override int get hashCode { - return SettingsStateMapper.ensureInitialized().hashValue(this as SettingsState); + return SettingsStateMapper.ensureInitialized() + .hashValue(this as SettingsState); } } -extension SettingsStateValueCopy<$R, $Out> on ObjectCopyWith<$R, SettingsState, $Out> { - SettingsStateCopyWith<$R, SettingsState, $Out> get $asSettingsState => $base.as((v, t, t2) => _SettingsStateCopyWithImpl(v, t, t2)); +extension SettingsStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, SettingsState, $Out> { + SettingsStateCopyWith<$R, SettingsState, $Out> get $asSettingsState => + $base.as((v, t, t2) => _SettingsStateCopyWithImpl(v, t, t2)); } -abstract class SettingsStateCopyWith<$R, $In extends SettingsState, $Out> implements ClassCopyWith<$R, $In, $Out> { - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkWhitelist; - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkBlacklist; +abstract class SettingsStateCopyWith<$R, $In extends SettingsState, $Out> + implements ClassCopyWith<$R, $In, $Out> { + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? + get networkWhitelist; + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? + get networkBlacklist; $R call( {String? showToken, String? alias, @@ -210,20 +248,30 @@ abstract class SettingsStateCopyWith<$R, $In extends SettingsState, $Out> implem SettingsStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SettingsStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SettingsState, $Out> +class _SettingsStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SettingsState, $Out> implements SettingsStateCopyWith<$R, SettingsState, $Out> { _SettingsStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SettingsStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SettingsStateMapper.ensureInitialized(); @override - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkWhitelist => $value.networkWhitelist != null - ? ListCopyWith($value.networkWhitelist!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(networkWhitelist: v)) - : null; + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? + get networkWhitelist => $value.networkWhitelist != null + ? ListCopyWith( + $value.networkWhitelist!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(networkWhitelist: v)) + : null; @override - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? get networkBlacklist => $value.networkBlacklist != null - ? ListCopyWith($value.networkBlacklist!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(networkBlacklist: v)) - : null; + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>>? + get networkBlacklist => $value.networkBlacklist != null + ? ListCopyWith( + $value.networkBlacklist!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(networkBlacklist: v)) + : null; @override $R call( {String? showToken, @@ -266,17 +314,20 @@ class _SettingsStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Setting if (saveToGallery != null) #saveToGallery: saveToGallery, if (saveToHistory != null) #saveToHistory: saveToHistory, if (quickSave != null) #quickSave: quickSave, - if (quickSaveFromFavorites != null) #quickSaveFromFavorites: quickSaveFromFavorites, + if (quickSaveFromFavorites != null) + #quickSaveFromFavorites: quickSaveFromFavorites, if (receivePin != $none) #receivePin: receivePin, if (autoFinish != null) #autoFinish: autoFinish, if (minimizeToTray != null) #minimizeToTray: minimizeToTray, if (https != null) #https: https, if (sendMode != null) #sendMode: sendMode, - if (saveWindowPlacement != null) #saveWindowPlacement: saveWindowPlacement, + if (saveWindowPlacement != null) + #saveWindowPlacement: saveWindowPlacement, if (enableAnimations != null) #enableAnimations: enableAnimations, if (deviceType != $none) #deviceType: deviceType, if (deviceModel != $none) #deviceModel: deviceModel, - if (shareViaLinkAutoAccept != null) #shareViaLinkAutoAccept: shareViaLinkAutoAccept, + if (shareViaLinkAutoAccept != null) + #shareViaLinkAutoAccept: shareViaLinkAutoAccept, if (discoveryTimeout != null) #discoveryTimeout: discoveryTimeout, if (advancedSettings != null) #advancedSettings: advancedSettings })); @@ -288,27 +339,37 @@ class _SettingsStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Setting colorMode: data.get(#colorMode, or: $value.colorMode), locale: data.get(#locale, or: $value.locale), port: data.get(#port, or: $value.port), - networkWhitelist: data.get(#networkWhitelist, or: $value.networkWhitelist), - networkBlacklist: data.get(#networkBlacklist, or: $value.networkBlacklist), + networkWhitelist: + data.get(#networkWhitelist, or: $value.networkWhitelist), + networkBlacklist: + data.get(#networkBlacklist, or: $value.networkBlacklist), multicastGroup: data.get(#multicastGroup, or: $value.multicastGroup), destination: data.get(#destination, or: $value.destination), saveToGallery: data.get(#saveToGallery, or: $value.saveToGallery), saveToHistory: data.get(#saveToHistory, or: $value.saveToHistory), quickSave: data.get(#quickSave, or: $value.quickSave), - quickSaveFromFavorites: data.get(#quickSaveFromFavorites, or: $value.quickSaveFromFavorites), + quickSaveFromFavorites: + data.get(#quickSaveFromFavorites, or: $value.quickSaveFromFavorites), receivePin: data.get(#receivePin, or: $value.receivePin), autoFinish: data.get(#autoFinish, or: $value.autoFinish), minimizeToTray: data.get(#minimizeToTray, or: $value.minimizeToTray), https: data.get(#https, or: $value.https), sendMode: data.get(#sendMode, or: $value.sendMode), - saveWindowPlacement: data.get(#saveWindowPlacement, or: $value.saveWindowPlacement), - enableAnimations: data.get(#enableAnimations, or: $value.enableAnimations), + saveWindowPlacement: + data.get(#saveWindowPlacement, or: $value.saveWindowPlacement), + enableAnimations: + data.get(#enableAnimations, or: $value.enableAnimations), deviceType: data.get(#deviceType, or: $value.deviceType), deviceModel: data.get(#deviceModel, or: $value.deviceModel), - shareViaLinkAutoAccept: data.get(#shareViaLinkAutoAccept, or: $value.shareViaLinkAutoAccept), - discoveryTimeout: data.get(#discoveryTimeout, or: $value.discoveryTimeout), - advancedSettings: data.get(#advancedSettings, or: $value.advancedSettings)); + shareViaLinkAutoAccept: + data.get(#shareViaLinkAutoAccept, or: $value.shareViaLinkAutoAccept), + discoveryTimeout: + data.get(#discoveryTimeout, or: $value.discoveryTimeout), + advancedSettings: + data.get(#advancedSettings, or: $value.advancedSettings)); @override - SettingsStateCopyWith<$R2, SettingsState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SettingsStateCopyWithImpl($value, $cast, t); + SettingsStateCopyWith<$R2, SettingsState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _SettingsStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/pages/tabs/settings_tab_vm.mapper.dart b/app/lib/pages/tabs/settings_tab_vm.mapper.dart index 82a31883..0851defa 100644 --- a/app/lib/pages/tabs/settings_tab_vm.mapper.dart +++ b/app/lib/pages/tabs/settings_tab_vm.mapper.dart @@ -23,65 +23,113 @@ class SettingsTabVmMapper extends ClassMapperBase { final String id = 'SettingsTabVm'; static bool _$advanced(SettingsTabVm v) => v.advanced; - static const Field _f$advanced = Field('advanced', _$advanced); - static TextEditingController _$aliasController(SettingsTabVm v) => v.aliasController; - static const Field _f$aliasController = Field('aliasController', _$aliasController); - static TextEditingController _$deviceModelController(SettingsTabVm v) => v.deviceModelController; - static const Field _f$deviceModelController = Field('deviceModelController', _$deviceModelController); - static TextEditingController _$portController(SettingsTabVm v) => v.portController; - static const Field _f$portController = Field('portController', _$portController); - static TextEditingController _$timeoutController(SettingsTabVm v) => v.timeoutController; - static const Field _f$timeoutController = Field('timeoutController', _$timeoutController); - static TextEditingController _$multicastController(SettingsTabVm v) => v.multicastController; - static const Field _f$multicastController = Field('multicastController', _$multicastController); + static const Field _f$advanced = + Field('advanced', _$advanced); + static TextEditingController _$aliasController(SettingsTabVm v) => + v.aliasController; + static const Field _f$aliasController = + Field('aliasController', _$aliasController); + static TextEditingController _$deviceModelController(SettingsTabVm v) => + v.deviceModelController; + static const Field + _f$deviceModelController = + Field('deviceModelController', _$deviceModelController); + static TextEditingController _$portController(SettingsTabVm v) => + v.portController; + static const Field _f$portController = + Field('portController', _$portController); + static TextEditingController _$timeoutController(SettingsTabVm v) => + v.timeoutController; + static const Field + _f$timeoutController = Field('timeoutController', _$timeoutController); + static TextEditingController _$multicastController(SettingsTabVm v) => + v.multicastController; + static const Field + _f$multicastController = + Field('multicastController', _$multicastController); static SettingsState _$settings(SettingsTabVm v) => v.settings; - static const Field _f$settings = Field('settings', _$settings); + static const Field _f$settings = + Field('settings', _$settings); static ServerState? _$serverState(SettingsTabVm v) => v.serverState; - static const Field _f$serverState = Field('serverState', _$serverState); + static const Field _f$serverState = + Field('serverState', _$serverState); static DeviceInfoResult _$deviceInfo(SettingsTabVm v) => v.deviceInfo; - static const Field _f$deviceInfo = Field('deviceInfo', _$deviceInfo); + static const Field _f$deviceInfo = + Field('deviceInfo', _$deviceInfo); static List _$colorModes(SettingsTabVm v) => v.colorModes; - static const Field> _f$colorModes = Field('colorModes', _$colorModes); + static const Field> _f$colorModes = + Field('colorModes', _$colorModes); static bool _$autoStart(SettingsTabVm v) => v.autoStart; - static const Field _f$autoStart = Field('autoStart', _$autoStart); - static bool _$autoStartLaunchHidden(SettingsTabVm v) => v.autoStartLaunchHidden; - static const Field _f$autoStartLaunchHidden = Field('autoStartLaunchHidden', _$autoStartLaunchHidden); + static const Field _f$autoStart = + Field('autoStart', _$autoStart); + static bool _$autoStartLaunchHidden(SettingsTabVm v) => + v.autoStartLaunchHidden; + static const Field _f$autoStartLaunchHidden = + Field('autoStartLaunchHidden', _$autoStartLaunchHidden); static bool _$showInContextMenu(SettingsTabVm v) => v.showInContextMenu; - static const Field _f$showInContextMenu = Field('showInContextMenu', _$showInContextMenu); - static Function _$onChangeTheme(SettingsTabVm v) => (v as dynamic).onChangeTheme as Function; - static dynamic _arg$onChangeTheme(f) => f(); - static const Field _f$onChangeTheme = Field('onChangeTheme', _$onChangeTheme, arg: _arg$onChangeTheme); - static Function _$onChangeColorMode(SettingsTabVm v) => (v as dynamic).onChangeColorMode as Function; + static const Field _f$showInContextMenu = + Field('showInContextMenu', _$showInContextMenu); + static Function _$onChangeTheme(SettingsTabVm v) => + (v as dynamic).onChangeTheme as Function; + static dynamic _arg$onChangeTheme(f) => + f(); + static const Field _f$onChangeTheme = + Field('onChangeTheme', _$onChangeTheme, arg: _arg$onChangeTheme); + static Function _$onChangeColorMode(SettingsTabVm v) => + (v as dynamic).onChangeColorMode as Function; static dynamic _arg$onChangeColorMode(f) => f(); - static const Field _f$onChangeColorMode = Field('onChangeColorMode', _$onChangeColorMode, arg: _arg$onChangeColorMode); - static Function _$onTapLanguage(SettingsTabVm v) => (v as dynamic).onTapLanguage as Function; + static const Field _f$onChangeColorMode = Field( + 'onChangeColorMode', _$onChangeColorMode, + arg: _arg$onChangeColorMode); + static Function _$onTapLanguage(SettingsTabVm v) => + (v as dynamic).onTapLanguage as Function; static dynamic _arg$onTapLanguage(f) => f(); - static const Field _f$onTapLanguage = Field('onTapLanguage', _$onTapLanguage, arg: _arg$onTapLanguage); - static Function _$onToggleAutoStart(SettingsTabVm v) => (v as dynamic).onToggleAutoStart as Function; + static const Field _f$onTapLanguage = + Field('onTapLanguage', _$onTapLanguage, arg: _arg$onTapLanguage); + static Function _$onToggleAutoStart(SettingsTabVm v) => + (v as dynamic).onToggleAutoStart as Function; static dynamic _arg$onToggleAutoStart(f) => f(); - static const Field _f$onToggleAutoStart = Field('onToggleAutoStart', _$onToggleAutoStart, arg: _arg$onToggleAutoStart); - static Function _$onToggleAutoStartLaunchHidden(SettingsTabVm v) => (v as dynamic).onToggleAutoStartLaunchHidden as Function; - static dynamic _arg$onToggleAutoStartLaunchHidden(f) => f(); + static const Field _f$onToggleAutoStart = Field( + 'onToggleAutoStart', _$onToggleAutoStart, + arg: _arg$onToggleAutoStart); + static Function _$onToggleAutoStartLaunchHidden(SettingsTabVm v) => + (v as dynamic).onToggleAutoStartLaunchHidden as Function; + static dynamic _arg$onToggleAutoStartLaunchHidden(f) => + f(); static const Field _f$onToggleAutoStartLaunchHidden = - Field('onToggleAutoStartLaunchHidden', _$onToggleAutoStartLaunchHidden, arg: _arg$onToggleAutoStartLaunchHidden); - static Function _$onToggleShowInContextMenu(SettingsTabVm v) => (v as dynamic).onToggleShowInContextMenu as Function; - static dynamic _arg$onToggleShowInContextMenu(f) => f(); + Field('onToggleAutoStartLaunchHidden', _$onToggleAutoStartLaunchHidden, + arg: _arg$onToggleAutoStartLaunchHidden); + static Function _$onToggleShowInContextMenu(SettingsTabVm v) => + (v as dynamic).onToggleShowInContextMenu as Function; + static dynamic _arg$onToggleShowInContextMenu(f) => + f(); static const Field _f$onToggleShowInContextMenu = - Field('onToggleShowInContextMenu', _$onToggleShowInContextMenu, arg: _arg$onToggleShowInContextMenu); - static Function _$onTapRestartServer(SettingsTabVm v) => (v as dynamic).onTapRestartServer as Function; + Field('onToggleShowInContextMenu', _$onToggleShowInContextMenu, + arg: _arg$onToggleShowInContextMenu); + static Function _$onTapRestartServer(SettingsTabVm v) => + (v as dynamic).onTapRestartServer as Function; static dynamic _arg$onTapRestartServer(f) => f(); - static const Field _f$onTapRestartServer = Field('onTapRestartServer', _$onTapRestartServer, arg: _arg$onTapRestartServer); - static Function _$onTapStartServer(SettingsTabVm v) => (v as dynamic).onTapStartServer as Function; + static const Field _f$onTapRestartServer = Field( + 'onTapRestartServer', _$onTapRestartServer, + arg: _arg$onTapRestartServer); + static Function _$onTapStartServer(SettingsTabVm v) => + (v as dynamic).onTapStartServer as Function; static dynamic _arg$onTapStartServer(f) => f(); - static const Field _f$onTapStartServer = Field('onTapStartServer', _$onTapStartServer, arg: _arg$onTapStartServer); - static Function _$onTapStopServer(SettingsTabVm v) => (v as dynamic).onTapStopServer as Function; + static const Field _f$onTapStartServer = + Field('onTapStartServer', _$onTapStartServer, arg: _arg$onTapStartServer); + static Function _$onTapStopServer(SettingsTabVm v) => + (v as dynamic).onTapStopServer as Function; static dynamic _arg$onTapStopServer(f) => f(); - static const Field _f$onTapStopServer = Field('onTapStopServer', _$onTapStopServer, arg: _arg$onTapStopServer); - static Function _$onTapAdvanced(SettingsTabVm v) => (v as dynamic).onTapAdvanced as Function; + static const Field _f$onTapStopServer = + Field('onTapStopServer', _$onTapStopServer, arg: _arg$onTapStopServer); + static Function _$onTapAdvanced(SettingsTabVm v) => + (v as dynamic).onTapAdvanced as Function; static dynamic _arg$onTapAdvanced(f) => f(); - static const Field _f$onTapAdvanced = Field('onTapAdvanced', _$onTapAdvanced, arg: _arg$onTapAdvanced); + static const Field _f$onTapAdvanced = + Field('onTapAdvanced', _$onTapAdvanced, arg: _arg$onTapAdvanced); static List _$themeModes(SettingsTabVm v) => v.themeModes; - static const Field> _f$themeModes = Field('themeModes', _$themeModes, mode: FieldMode.member); + static const Field> _f$themeModes = + Field('themeModes', _$themeModes, mode: FieldMode.member); @override final MappableFields fields = const { @@ -130,7 +178,8 @@ class SettingsTabVmMapper extends ClassMapperBase { onChangeColorMode: data.dec(_f$onChangeColorMode), onTapLanguage: data.dec(_f$onTapLanguage), onToggleAutoStart: data.dec(_f$onToggleAutoStart), - onToggleAutoStartLaunchHidden: data.dec(_f$onToggleAutoStartLaunchHidden), + onToggleAutoStartLaunchHidden: + data.dec(_f$onToggleAutoStartLaunchHidden), onToggleShowInContextMenu: data.dec(_f$onToggleShowInContextMenu), onTapRestartServer: data.dec(_f$onTapRestartServer), onTapStartServer: data.dec(_f$onTapStartServer), @@ -152,39 +201,49 @@ class SettingsTabVmMapper extends ClassMapperBase { mixin SettingsTabVmMappable { String serialize() { - return SettingsTabVmMapper.ensureInitialized().encodeJson(this as SettingsTabVm); + return SettingsTabVmMapper.ensureInitialized() + .encodeJson(this as SettingsTabVm); } Map toJson() { - return SettingsTabVmMapper.ensureInitialized().encodeMap(this as SettingsTabVm); + return SettingsTabVmMapper.ensureInitialized() + .encodeMap(this as SettingsTabVm); } - SettingsTabVmCopyWith get copyWith => - _SettingsTabVmCopyWithImpl(this as SettingsTabVm, $identity, $identity); + SettingsTabVmCopyWith + get copyWith => _SettingsTabVmCopyWithImpl( + this as SettingsTabVm, $identity, $identity); @override String toString() { - return SettingsTabVmMapper.ensureInitialized().stringifyValue(this as SettingsTabVm); + return SettingsTabVmMapper.ensureInitialized() + .stringifyValue(this as SettingsTabVm); } @override bool operator ==(Object other) { - return SettingsTabVmMapper.ensureInitialized().equalsValue(this as SettingsTabVm, other); + return SettingsTabVmMapper.ensureInitialized() + .equalsValue(this as SettingsTabVm, other); } @override int get hashCode { - return SettingsTabVmMapper.ensureInitialized().hashValue(this as SettingsTabVm); + return SettingsTabVmMapper.ensureInitialized() + .hashValue(this as SettingsTabVm); } } -extension SettingsTabVmValueCopy<$R, $Out> on ObjectCopyWith<$R, SettingsTabVm, $Out> { - SettingsTabVmCopyWith<$R, SettingsTabVm, $Out> get $asSettingsTabVm => $base.as((v, t, t2) => _SettingsTabVmCopyWithImpl(v, t, t2)); +extension SettingsTabVmValueCopy<$R, $Out> + on ObjectCopyWith<$R, SettingsTabVm, $Out> { + SettingsTabVmCopyWith<$R, SettingsTabVm, $Out> get $asSettingsTabVm => + $base.as((v, t, t2) => _SettingsTabVmCopyWithImpl(v, t, t2)); } -abstract class SettingsTabVmCopyWith<$R, $In extends SettingsTabVm, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class SettingsTabVmCopyWith<$R, $In extends SettingsTabVm, $Out> + implements ClassCopyWith<$R, $In, $Out> { SettingsStateCopyWith<$R, SettingsState, SettingsState> get settings; ServerStateCopyWith<$R, ServerState, ServerState>? get serverState; - ListCopyWith<$R, ColorMode, ObjectCopyWith<$R, ColorMode, ColorMode>> get colorModes; + ListCopyWith<$R, ColorMode, ObjectCopyWith<$R, ColorMode, ColorMode>> + get colorModes; $R call( {bool? advanced, TextEditingController? aliasController, @@ -212,19 +271,26 @@ abstract class SettingsTabVmCopyWith<$R, $In extends SettingsTabVm, $Out> implem SettingsTabVmCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SettingsTabVmCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SettingsTabVm, $Out> +class _SettingsTabVmCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SettingsTabVm, $Out> implements SettingsTabVmCopyWith<$R, SettingsTabVm, $Out> { _SettingsTabVmCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SettingsTabVmMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SettingsTabVmMapper.ensureInitialized(); @override - SettingsStateCopyWith<$R, SettingsState, SettingsState> get settings => $value.settings.copyWith.$chain((v) => call(settings: v)); + SettingsStateCopyWith<$R, SettingsState, SettingsState> get settings => + $value.settings.copyWith.$chain((v) => call(settings: v)); @override - ServerStateCopyWith<$R, ServerState, ServerState>? get serverState => $value.serverState?.copyWith.$chain((v) => call(serverState: v)); + ServerStateCopyWith<$R, ServerState, ServerState>? get serverState => + $value.serverState?.copyWith.$chain((v) => call(serverState: v)); @override - ListCopyWith<$R, ColorMode, ObjectCopyWith<$R, ColorMode, ColorMode>> get colorModes => - ListCopyWith($value.colorModes, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(colorModes: v)); + ListCopyWith<$R, ColorMode, ObjectCopyWith<$R, ColorMode, ColorMode>> + get colorModes => ListCopyWith( + $value.colorModes, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(colorModes: v)); @override $R call( {bool? advanced, @@ -253,23 +319,28 @@ class _SettingsTabVmCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Setting $apply(FieldCopyWithData({ if (advanced != null) #advanced: advanced, if (aliasController != null) #aliasController: aliasController, - if (deviceModelController != null) #deviceModelController: deviceModelController, + if (deviceModelController != null) + #deviceModelController: deviceModelController, if (portController != null) #portController: portController, if (timeoutController != null) #timeoutController: timeoutController, - if (multicastController != null) #multicastController: multicastController, + if (multicastController != null) + #multicastController: multicastController, if (settings != null) #settings: settings, if (serverState != $none) #serverState: serverState, if (deviceInfo != null) #deviceInfo: deviceInfo, if (colorModes != null) #colorModes: colorModes, if (autoStart != null) #autoStart: autoStart, - if (autoStartLaunchHidden != null) #autoStartLaunchHidden: autoStartLaunchHidden, + if (autoStartLaunchHidden != null) + #autoStartLaunchHidden: autoStartLaunchHidden, if (showInContextMenu != null) #showInContextMenu: showInContextMenu, if (onChangeTheme != null) #onChangeTheme: onChangeTheme, if (onChangeColorMode != null) #onChangeColorMode: onChangeColorMode, if (onTapLanguage != null) #onTapLanguage: onTapLanguage, if (onToggleAutoStart != null) #onToggleAutoStart: onToggleAutoStart, - if (onToggleAutoStartLaunchHidden != null) #onToggleAutoStartLaunchHidden: onToggleAutoStartLaunchHidden, - if (onToggleShowInContextMenu != null) #onToggleShowInContextMenu: onToggleShowInContextMenu, + if (onToggleAutoStartLaunchHidden != null) + #onToggleAutoStartLaunchHidden: onToggleAutoStartLaunchHidden, + if (onToggleShowInContextMenu != null) + #onToggleShowInContextMenu: onToggleShowInContextMenu, if (onTapRestartServer != null) #onTapRestartServer: onTapRestartServer, if (onTapStartServer != null) #onTapStartServer: onTapStartServer, if (onTapStopServer != null) #onTapStopServer: onTapStopServer, @@ -279,28 +350,41 @@ class _SettingsTabVmCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Setting SettingsTabVm $make(CopyWithData data) => SettingsTabVm( advanced: data.get(#advanced, or: $value.advanced), aliasController: data.get(#aliasController, or: $value.aliasController), - deviceModelController: data.get(#deviceModelController, or: $value.deviceModelController), + deviceModelController: + data.get(#deviceModelController, or: $value.deviceModelController), portController: data.get(#portController, or: $value.portController), - timeoutController: data.get(#timeoutController, or: $value.timeoutController), - multicastController: data.get(#multicastController, or: $value.multicastController), + timeoutController: + data.get(#timeoutController, or: $value.timeoutController), + multicastController: + data.get(#multicastController, or: $value.multicastController), settings: data.get(#settings, or: $value.settings), serverState: data.get(#serverState, or: $value.serverState), deviceInfo: data.get(#deviceInfo, or: $value.deviceInfo), colorModes: data.get(#colorModes, or: $value.colorModes), autoStart: data.get(#autoStart, or: $value.autoStart), - autoStartLaunchHidden: data.get(#autoStartLaunchHidden, or: $value.autoStartLaunchHidden), - showInContextMenu: data.get(#showInContextMenu, or: $value.showInContextMenu), + autoStartLaunchHidden: + data.get(#autoStartLaunchHidden, or: $value.autoStartLaunchHidden), + showInContextMenu: + data.get(#showInContextMenu, or: $value.showInContextMenu), onChangeTheme: data.get(#onChangeTheme, or: $value.onChangeTheme), - onChangeColorMode: data.get(#onChangeColorMode, or: $value.onChangeColorMode), + onChangeColorMode: + data.get(#onChangeColorMode, or: $value.onChangeColorMode), onTapLanguage: data.get(#onTapLanguage, or: $value.onTapLanguage), - onToggleAutoStart: data.get(#onToggleAutoStart, or: $value.onToggleAutoStart), - onToggleAutoStartLaunchHidden: data.get(#onToggleAutoStartLaunchHidden, or: $value.onToggleAutoStartLaunchHidden), - onToggleShowInContextMenu: data.get(#onToggleShowInContextMenu, or: $value.onToggleShowInContextMenu), - onTapRestartServer: data.get(#onTapRestartServer, or: $value.onTapRestartServer), - onTapStartServer: data.get(#onTapStartServer, or: $value.onTapStartServer), + onToggleAutoStart: + data.get(#onToggleAutoStart, or: $value.onToggleAutoStart), + onToggleAutoStartLaunchHidden: data.get(#onToggleAutoStartLaunchHidden, + or: $value.onToggleAutoStartLaunchHidden), + onToggleShowInContextMenu: data.get(#onToggleShowInContextMenu, + or: $value.onToggleShowInContextMenu), + onTapRestartServer: + data.get(#onTapRestartServer, or: $value.onTapRestartServer), + onTapStartServer: + data.get(#onTapStartServer, or: $value.onTapStartServer), onTapStopServer: data.get(#onTapStopServer, or: $value.onTapStopServer), onTapAdvanced: data.get(#onTapAdvanced, or: $value.onTapAdvanced)); @override - SettingsTabVmCopyWith<$R2, SettingsTabVm, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SettingsTabVmCopyWithImpl($value, $cast, t); + SettingsTabVmCopyWith<$R2, SettingsTabVm, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _SettingsTabVmCopyWithImpl($value, $cast, t); } diff --git a/app/lib/provider/network/webrtc/signaling_provider.dart b/app/lib/provider/network/webrtc/signaling_provider.dart index bd45c64c..c2288533 100644 --- a/app/lib/provider/network/webrtc/signaling_provider.dart +++ b/app/lib/provider/network/webrtc/signaling_provider.dart @@ -10,6 +10,7 @@ import 'package:localsend_app/provider/network/webrtc/webrtc_receiver.dart'; import 'package:localsend_app/provider/persistence_provider.dart'; import 'package:localsend_app/provider/security_provider.dart'; import 'package:localsend_app/provider/settings_provider.dart'; +import 'package:localsend_app/rust/api/crypto.dart' as crypto; import 'package:localsend_app/rust/api/model.dart' as rust; import 'package:localsend_app/rust/api/webrtc.dart'; import 'package:refena_flutter/refena_flutter.dart'; @@ -75,16 +76,20 @@ class _SetupSignalingConnection extends AsyncGlobalAction { final deviceInfo = ref.read(deviceInfoProvider); final security = ref.read(securityProvider); + // TODO: Use persistent key + final key = await crypto.generateKeyPair(); + print('private key: ${key.privateKey}'); + LsSignalingConnection? connection; final stream = connect( uri: 'wss://public.localsend.org/v1/ws', - info: ClientInfoWithoutId( + info: ProposingClientInfo( alias: settings.alias, version: protocolVersion, deviceModel: deviceInfo.deviceModel, deviceType: deviceInfo.deviceType.toRustDeviceType(), - token: security.certificateHash, ), + privateKey: key.privateKey, onConnection: (c) { connection = c; diff --git a/app/lib/provider/network/webrtc/signaling_provider.mapper.dart b/app/lib/provider/network/webrtc/signaling_provider.mapper.dart index 7ea8d10a..76fe3cd0 100644 --- a/app/lib/provider/network/webrtc/signaling_provider.mapper.dart +++ b/app/lib/provider/network/webrtc/signaling_provider.mapper.dart @@ -20,12 +20,17 @@ class SignalingStateMapper extends ClassMapperBase { @override final String id = 'SignalingState'; - static List _$signalingServers(SignalingState v) => v.signalingServers; - static const Field> _f$signalingServers = Field('signalingServers', _$signalingServers); + static List _$signalingServers(SignalingState v) => + v.signalingServers; + static const Field> _f$signalingServers = + Field('signalingServers', _$signalingServers); static List _$stunServers(SignalingState v) => v.stunServers; - static const Field> _f$stunServers = Field('stunServers', _$stunServers); - static Map _$connections(SignalingState v) => v.connections; - static const Field> _f$connections = Field('connections', _$connections); + static const Field> _f$stunServers = + Field('stunServers', _$stunServers); + static Map _$connections(SignalingState v) => + v.connections; + static const Field> + _f$connections = Field('connections', _$connections); @override final MappableFields fields = const { @@ -36,7 +41,9 @@ class SignalingStateMapper extends ClassMapperBase { static SignalingState _instantiate(DecodingData data) { return SignalingState( - signalingServers: data.dec(_f$signalingServers), stunServers: data.dec(_f$stunServers), connections: data.dec(_f$connections)); + signalingServers: data.dec(_f$signalingServers), + stunServers: data.dec(_f$stunServers), + connections: data.dec(_f$connections)); } @override @@ -53,70 +60,105 @@ class SignalingStateMapper extends ClassMapperBase { mixin SignalingStateMappable { String serialize() { - return SignalingStateMapper.ensureInitialized().encodeJson(this as SignalingState); + return SignalingStateMapper.ensureInitialized() + .encodeJson(this as SignalingState); } Map toJson() { - return SignalingStateMapper.ensureInitialized().encodeMap(this as SignalingState); + return SignalingStateMapper.ensureInitialized() + .encodeMap(this as SignalingState); } - SignalingStateCopyWith get copyWith => - _SignalingStateCopyWithImpl(this as SignalingState, $identity, $identity); + SignalingStateCopyWith + get copyWith => _SignalingStateCopyWithImpl( + this as SignalingState, $identity, $identity); @override String toString() { - return SignalingStateMapper.ensureInitialized().stringifyValue(this as SignalingState); + return SignalingStateMapper.ensureInitialized() + .stringifyValue(this as SignalingState); } @override bool operator ==(Object other) { - return SignalingStateMapper.ensureInitialized().equalsValue(this as SignalingState, other); + return SignalingStateMapper.ensureInitialized() + .equalsValue(this as SignalingState, other); } @override int get hashCode { - return SignalingStateMapper.ensureInitialized().hashValue(this as SignalingState); + return SignalingStateMapper.ensureInitialized() + .hashValue(this as SignalingState); } } -extension SignalingStateValueCopy<$R, $Out> on ObjectCopyWith<$R, SignalingState, $Out> { - SignalingStateCopyWith<$R, SignalingState, $Out> get $asSignalingState => $base.as((v, t, t2) => _SignalingStateCopyWithImpl(v, t, t2)); +extension SignalingStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, SignalingState, $Out> { + SignalingStateCopyWith<$R, SignalingState, $Out> get $asSignalingState => + $base.as((v, t, t2) => _SignalingStateCopyWithImpl(v, t, t2)); } -abstract class SignalingStateCopyWith<$R, $In extends SignalingState, $Out> implements ClassCopyWith<$R, $In, $Out> { - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get signalingServers; +abstract class SignalingStateCopyWith<$R, $In extends SignalingState, $Out> + implements ClassCopyWith<$R, $In, $Out> { + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> + get signalingServers; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get stunServers; - MapCopyWith<$R, String, LsSignalingConnection, ObjectCopyWith<$R, LsSignalingConnection, LsSignalingConnection>> get connections; - $R call({List? signalingServers, List? stunServers, Map? connections}); - SignalingStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + MapCopyWith<$R, String, LsSignalingConnection, + ObjectCopyWith<$R, LsSignalingConnection, LsSignalingConnection>> + get connections; + $R call( + {List? signalingServers, + List? stunServers, + Map? connections}); + SignalingStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _SignalingStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SignalingState, $Out> +class _SignalingStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SignalingState, $Out> implements SignalingStateCopyWith<$R, SignalingState, $Out> { _SignalingStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SignalingStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SignalingStateMapper.ensureInitialized(); @override - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get signalingServers => - ListCopyWith($value.signalingServers, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(signalingServers: v)); + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> + get signalingServers => ListCopyWith( + $value.signalingServers, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(signalingServers: v)); @override - ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get stunServers => - ListCopyWith($value.stunServers, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(stunServers: v)); + ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> + get stunServers => ListCopyWith( + $value.stunServers, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(stunServers: v)); @override - MapCopyWith<$R, String, LsSignalingConnection, ObjectCopyWith<$R, LsSignalingConnection, LsSignalingConnection>> get connections => - MapCopyWith($value.connections, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(connections: v)); + MapCopyWith<$R, String, LsSignalingConnection, + ObjectCopyWith<$R, LsSignalingConnection, LsSignalingConnection>> + get connections => MapCopyWith( + $value.connections, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(connections: v)); @override - $R call({List? signalingServers, List? stunServers, Map? connections}) => $apply(FieldCopyWithData({ + $R call( + {List? signalingServers, + List? stunServers, + Map? connections}) => + $apply(FieldCopyWithData({ if (signalingServers != null) #signalingServers: signalingServers, if (stunServers != null) #stunServers: stunServers, if (connections != null) #connections: connections })); @override SignalingState $make(CopyWithData data) => SignalingState( - signalingServers: data.get(#signalingServers, or: $value.signalingServers), + signalingServers: + data.get(#signalingServers, or: $value.signalingServers), stunServers: data.get(#stunServers, or: $value.stunServers), connections: data.get(#connections, or: $value.connections)); @override - SignalingStateCopyWith<$R2, SignalingState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SignalingStateCopyWithImpl($value, $cast, t); + SignalingStateCopyWith<$R2, SignalingState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _SignalingStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/provider/network/webrtc/webrtc_receiver.mapper.dart b/app/lib/provider/network/webrtc/webrtc_receiver.mapper.dart index 151f4627..e93c2ee2 100644 --- a/app/lib/provider/network/webrtc/webrtc_receiver.mapper.dart +++ b/app/lib/provider/network/webrtc/webrtc_receiver.mapper.dart @@ -21,16 +21,24 @@ class WebRTCReceiveStateMapper extends ClassMapperBase { @override final String id = 'WebRTCReceiveState'; - static LsSignalingConnection _$connection(WebRTCReceiveState v) => v.connection; - static const Field _f$connection = Field('connection', _$connection); + static LsSignalingConnection _$connection(WebRTCReceiveState v) => + v.connection; + static const Field _f$connection = + Field('connection', _$connection); static WsServerSdpMessage _$offer(WebRTCReceiveState v) => v.offer; - static const Field _f$offer = Field('offer', _$offer); + static const Field _f$offer = + Field('offer', _$offer); static RTCStatus? _$status(WebRTCReceiveState v) => v.status; - static const Field _f$status = Field('status', _$status); - static RtcReceiveController? _$controller(WebRTCReceiveState v) => v.controller; - static const Field _f$controller = Field('controller', _$controller); - static ReceiveSessionState? _$sessionState(WebRTCReceiveState v) => v.sessionState; - static const Field _f$sessionState = Field('sessionState', _$sessionState); + static const Field _f$status = + Field('status', _$status); + static RtcReceiveController? _$controller(WebRTCReceiveState v) => + v.controller; + static const Field _f$controller = + Field('controller', _$controller); + static ReceiveSessionState? _$sessionState(WebRTCReceiveState v) => + v.sessionState; + static const Field _f$sessionState = + Field('sessionState', _$sessionState); @override final MappableFields fields = const { @@ -64,56 +72,71 @@ class WebRTCReceiveStateMapper extends ClassMapperBase { mixin WebRTCReceiveStateMappable { String serialize() { - return WebRTCReceiveStateMapper.ensureInitialized().encodeJson(this as WebRTCReceiveState); + return WebRTCReceiveStateMapper.ensureInitialized() + .encodeJson(this as WebRTCReceiveState); } Map toJson() { - return WebRTCReceiveStateMapper.ensureInitialized().encodeMap(this as WebRTCReceiveState); + return WebRTCReceiveStateMapper.ensureInitialized() + .encodeMap(this as WebRTCReceiveState); } - WebRTCReceiveStateCopyWith get copyWith => - _WebRTCReceiveStateCopyWithImpl(this as WebRTCReceiveState, $identity, $identity); + WebRTCReceiveStateCopyWith + get copyWith => _WebRTCReceiveStateCopyWithImpl( + this as WebRTCReceiveState, $identity, $identity); @override String toString() { - return WebRTCReceiveStateMapper.ensureInitialized().stringifyValue(this as WebRTCReceiveState); + return WebRTCReceiveStateMapper.ensureInitialized() + .stringifyValue(this as WebRTCReceiveState); } @override bool operator ==(Object other) { - return WebRTCReceiveStateMapper.ensureInitialized().equalsValue(this as WebRTCReceiveState, other); + return WebRTCReceiveStateMapper.ensureInitialized() + .equalsValue(this as WebRTCReceiveState, other); } @override int get hashCode { - return WebRTCReceiveStateMapper.ensureInitialized().hashValue(this as WebRTCReceiveState); + return WebRTCReceiveStateMapper.ensureInitialized() + .hashValue(this as WebRTCReceiveState); } } -extension WebRTCReceiveStateValueCopy<$R, $Out> on ObjectCopyWith<$R, WebRTCReceiveState, $Out> { - WebRTCReceiveStateCopyWith<$R, WebRTCReceiveState, $Out> get $asWebRTCReceiveState => - $base.as((v, t, t2) => _WebRTCReceiveStateCopyWithImpl(v, t, t2)); +extension WebRTCReceiveStateValueCopy<$R, $Out> + on ObjectCopyWith<$R, WebRTCReceiveState, $Out> { + WebRTCReceiveStateCopyWith<$R, WebRTCReceiveState, $Out> + get $asWebRTCReceiveState => + $base.as((v, t, t2) => _WebRTCReceiveStateCopyWithImpl(v, t, t2)); } -abstract class WebRTCReceiveStateCopyWith<$R, $In extends WebRTCReceiveState, $Out> implements ClassCopyWith<$R, $In, $Out> { - ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? get sessionState; +abstract class WebRTCReceiveStateCopyWith<$R, $In extends WebRTCReceiveState, + $Out> implements ClassCopyWith<$R, $In, $Out> { + ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? + get sessionState; $R call( {LsSignalingConnection? connection, WsServerSdpMessage? offer, RTCStatus? status, RtcReceiveController? controller, ReceiveSessionState? sessionState}); - WebRTCReceiveStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + WebRTCReceiveStateCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _WebRTCReceiveStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, WebRTCReceiveState, $Out> +class _WebRTCReceiveStateCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, WebRTCReceiveState, $Out> implements WebRTCReceiveStateCopyWith<$R, WebRTCReceiveState, $Out> { _WebRTCReceiveStateCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = WebRTCReceiveStateMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + WebRTCReceiveStateMapper.ensureInitialized(); @override - ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? get sessionState => - $value.sessionState?.copyWith.$chain((v) => call(sessionState: v)); + ReceiveSessionStateCopyWith<$R, ReceiveSessionState, ReceiveSessionState>? + get sessionState => + $value.sessionState?.copyWith.$chain((v) => call(sessionState: v)); @override $R call( {LsSignalingConnection? connection, @@ -137,6 +160,7 @@ class _WebRTCReceiveStateCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, We sessionState: data.get(#sessionState, or: $value.sessionState)); @override - WebRTCReceiveStateCopyWith<$R2, WebRTCReceiveState, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + WebRTCReceiveStateCopyWith<$R2, WebRTCReceiveState, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _WebRTCReceiveStateCopyWithImpl($value, $cast, t); } diff --git a/app/lib/provider/param/apk_provider_param.mapper.dart b/app/lib/provider/param/apk_provider_param.mapper.dart index e8c9e27a..39329b8c 100644 --- a/app/lib/provider/param/apk_provider_param.mapper.dart +++ b/app/lib/provider/param/apk_provider_param.mapper.dart @@ -21,13 +21,18 @@ class ApkProviderParamMapper extends ClassMapperBase { final String id = 'ApkProviderParam'; static String _$query(ApkProviderParam v) => v.query; - static const Field _f$query = Field('query', _$query); + static const Field _f$query = + Field('query', _$query); static bool _$includeSystemApps(ApkProviderParam v) => v.includeSystemApps; - static const Field _f$includeSystemApps = Field('includeSystemApps', _$includeSystemApps); - static bool _$onlyAppsWithLaunchIntent(ApkProviderParam v) => v.onlyAppsWithLaunchIntent; - static const Field _f$onlyAppsWithLaunchIntent = Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent); + static const Field _f$includeSystemApps = + Field('includeSystemApps', _$includeSystemApps); + static bool _$onlyAppsWithLaunchIntent(ApkProviderParam v) => + v.onlyAppsWithLaunchIntent; + static const Field _f$onlyAppsWithLaunchIntent = + Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent); static bool _$selectMultipleApps(ApkProviderParam v) => v.selectMultipleApps; - static const Field _f$selectMultipleApps = Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false); + static const Field _f$selectMultipleApps = + Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false); @override final MappableFields fields = const { @@ -59,60 +64,88 @@ class ApkProviderParamMapper extends ClassMapperBase { mixin ApkProviderParamMappable { String serialize() { - return ApkProviderParamMapper.ensureInitialized().encodeJson(this as ApkProviderParam); + return ApkProviderParamMapper.ensureInitialized() + .encodeJson(this as ApkProviderParam); } Map toJson() { - return ApkProviderParamMapper.ensureInitialized().encodeMap(this as ApkProviderParam); + return ApkProviderParamMapper.ensureInitialized() + .encodeMap(this as ApkProviderParam); } - ApkProviderParamCopyWith get copyWith => - _ApkProviderParamCopyWithImpl(this as ApkProviderParam, $identity, $identity); + ApkProviderParamCopyWith + get copyWith => _ApkProviderParamCopyWithImpl( + this as ApkProviderParam, $identity, $identity); @override String toString() { - return ApkProviderParamMapper.ensureInitialized().stringifyValue(this as ApkProviderParam); + return ApkProviderParamMapper.ensureInitialized() + .stringifyValue(this as ApkProviderParam); } @override bool operator ==(Object other) { - return ApkProviderParamMapper.ensureInitialized().equalsValue(this as ApkProviderParam, other); + return ApkProviderParamMapper.ensureInitialized() + .equalsValue(this as ApkProviderParam, other); } @override int get hashCode { - return ApkProviderParamMapper.ensureInitialized().hashValue(this as ApkProviderParam); + return ApkProviderParamMapper.ensureInitialized() + .hashValue(this as ApkProviderParam); } } -extension ApkProviderParamValueCopy<$R, $Out> on ObjectCopyWith<$R, ApkProviderParam, $Out> { - ApkProviderParamCopyWith<$R, ApkProviderParam, $Out> get $asApkProviderParam => $base.as((v, t, t2) => _ApkProviderParamCopyWithImpl(v, t, t2)); +extension ApkProviderParamValueCopy<$R, $Out> + on ObjectCopyWith<$R, ApkProviderParam, $Out> { + ApkProviderParamCopyWith<$R, ApkProviderParam, $Out> + get $asApkProviderParam => + $base.as((v, t, t2) => _ApkProviderParamCopyWithImpl(v, t, t2)); } -abstract class ApkProviderParamCopyWith<$R, $In extends ApkProviderParam, $Out> implements ClassCopyWith<$R, $In, $Out> { - $R call({String? query, bool? includeSystemApps, bool? onlyAppsWithLaunchIntent, bool? selectMultipleApps}); - ApkProviderParamCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); +abstract class ApkProviderParamCopyWith<$R, $In extends ApkProviderParam, $Out> + implements ClassCopyWith<$R, $In, $Out> { + $R call( + {String? query, + bool? includeSystemApps, + bool? onlyAppsWithLaunchIntent, + bool? selectMultipleApps}); + ApkProviderParamCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _ApkProviderParamCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ApkProviderParam, $Out> +class _ApkProviderParamCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ApkProviderParam, $Out> implements ApkProviderParamCopyWith<$R, ApkProviderParam, $Out> { _ApkProviderParamCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ApkProviderParamMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ApkProviderParamMapper.ensureInitialized(); @override - $R call({String? query, bool? includeSystemApps, bool? onlyAppsWithLaunchIntent, bool? selectMultipleApps}) => $apply(FieldCopyWithData({ + $R call( + {String? query, + bool? includeSystemApps, + bool? onlyAppsWithLaunchIntent, + bool? selectMultipleApps}) => + $apply(FieldCopyWithData({ if (query != null) #query: query, if (includeSystemApps != null) #includeSystemApps: includeSystemApps, - if (onlyAppsWithLaunchIntent != null) #onlyAppsWithLaunchIntent: onlyAppsWithLaunchIntent, + if (onlyAppsWithLaunchIntent != null) + #onlyAppsWithLaunchIntent: onlyAppsWithLaunchIntent, if (selectMultipleApps != null) #selectMultipleApps: selectMultipleApps })); @override ApkProviderParam $make(CopyWithData data) => ApkProviderParam( query: data.get(#query, or: $value.query), - includeSystemApps: data.get(#includeSystemApps, or: $value.includeSystemApps), - onlyAppsWithLaunchIntent: data.get(#onlyAppsWithLaunchIntent, or: $value.onlyAppsWithLaunchIntent), - selectMultipleApps: data.get(#selectMultipleApps, or: $value.selectMultipleApps)); + includeSystemApps: + data.get(#includeSystemApps, or: $value.includeSystemApps), + onlyAppsWithLaunchIntent: data.get(#onlyAppsWithLaunchIntent, + or: $value.onlyAppsWithLaunchIntent), + selectMultipleApps: + data.get(#selectMultipleApps, or: $value.selectMultipleApps)); @override - ApkProviderParamCopyWith<$R2, ApkProviderParam, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ApkProviderParamCopyWithImpl($value, $cast, t); + ApkProviderParamCopyWith<$R2, ApkProviderParam, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _ApkProviderParamCopyWithImpl($value, $cast, t); } diff --git a/app/lib/provider/param/cached_apk_provider_param.mapper.dart b/app/lib/provider/param/cached_apk_provider_param.mapper.dart index 083a8639..d1c6880d 100644 --- a/app/lib/provider/param/cached_apk_provider_param.mapper.dart +++ b/app/lib/provider/param/cached_apk_provider_param.mapper.dart @@ -6,7 +6,8 @@ part of 'cached_apk_provider_param.dart'; -class CachedApkProviderParamMapper extends ClassMapperBase { +class CachedApkProviderParamMapper + extends ClassMapperBase { CachedApkProviderParamMapper._(); static CachedApkProviderParamMapper? _instance; @@ -20,12 +21,18 @@ class CachedApkProviderParamMapper extends ClassMapperBase v.includeSystemApps; - static const Field _f$includeSystemApps = Field('includeSystemApps', _$includeSystemApps); - static bool _$onlyAppsWithLaunchIntent(CachedApkProviderParam v) => v.onlyAppsWithLaunchIntent; - static const Field _f$onlyAppsWithLaunchIntent = Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent); - static bool _$selectMultipleApps(CachedApkProviderParam v) => v.selectMultipleApps; - static const Field _f$selectMultipleApps = Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false); + static bool _$includeSystemApps(CachedApkProviderParam v) => + v.includeSystemApps; + static const Field _f$includeSystemApps = + Field('includeSystemApps', _$includeSystemApps); + static bool _$onlyAppsWithLaunchIntent(CachedApkProviderParam v) => + v.onlyAppsWithLaunchIntent; + static const Field _f$onlyAppsWithLaunchIntent = + Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent); + static bool _$selectMultipleApps(CachedApkProviderParam v) => + v.selectMultipleApps; + static const Field _f$selectMultipleApps = + Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false); @override final MappableFields fields = const { @@ -55,60 +62,88 @@ class CachedApkProviderParamMapper extends ClassMapperBase(this as CachedApkProviderParam); + return CachedApkProviderParamMapper.ensureInitialized() + .encodeJson(this as CachedApkProviderParam); } Map toJson() { - return CachedApkProviderParamMapper.ensureInitialized().encodeMap(this as CachedApkProviderParam); + return CachedApkProviderParamMapper.ensureInitialized() + .encodeMap(this as CachedApkProviderParam); } - CachedApkProviderParamCopyWith get copyWith => - _CachedApkProviderParamCopyWithImpl(this as CachedApkProviderParam, $identity, $identity); + CachedApkProviderParamCopyWith + get copyWith => _CachedApkProviderParamCopyWithImpl( + this as CachedApkProviderParam, $identity, $identity); @override String toString() { - return CachedApkProviderParamMapper.ensureInitialized().stringifyValue(this as CachedApkProviderParam); + return CachedApkProviderParamMapper.ensureInitialized() + .stringifyValue(this as CachedApkProviderParam); } @override bool operator ==(Object other) { - return CachedApkProviderParamMapper.ensureInitialized().equalsValue(this as CachedApkProviderParam, other); + return CachedApkProviderParamMapper.ensureInitialized() + .equalsValue(this as CachedApkProviderParam, other); } @override int get hashCode { - return CachedApkProviderParamMapper.ensureInitialized().hashValue(this as CachedApkProviderParam); + return CachedApkProviderParamMapper.ensureInitialized() + .hashValue(this as CachedApkProviderParam); } } -extension CachedApkProviderParamValueCopy<$R, $Out> on ObjectCopyWith<$R, CachedApkProviderParam, $Out> { - CachedApkProviderParamCopyWith<$R, CachedApkProviderParam, $Out> get $asCachedApkProviderParam => - $base.as((v, t, t2) => _CachedApkProviderParamCopyWithImpl(v, t, t2)); +extension CachedApkProviderParamValueCopy<$R, $Out> + on ObjectCopyWith<$R, CachedApkProviderParam, $Out> { + CachedApkProviderParamCopyWith<$R, CachedApkProviderParam, $Out> + get $asCachedApkProviderParam => + $base.as((v, t, t2) => _CachedApkProviderParamCopyWithImpl(v, t, t2)); } -abstract class CachedApkProviderParamCopyWith<$R, $In extends CachedApkProviderParam, $Out> implements ClassCopyWith<$R, $In, $Out> { - $R call({bool? includeSystemApps, bool? onlyAppsWithLaunchIntent, bool? selectMultipleApps}); - CachedApkProviderParamCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); +abstract class CachedApkProviderParamCopyWith< + $R, + $In extends CachedApkProviderParam, + $Out> implements ClassCopyWith<$R, $In, $Out> { + $R call( + {bool? includeSystemApps, + bool? onlyAppsWithLaunchIntent, + bool? selectMultipleApps}); + CachedApkProviderParamCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _CachedApkProviderParamCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, CachedApkProviderParam, $Out> - implements CachedApkProviderParamCopyWith<$R, CachedApkProviderParam, $Out> { +class _CachedApkProviderParamCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, CachedApkProviderParam, $Out> + implements + CachedApkProviderParamCopyWith<$R, CachedApkProviderParam, $Out> { _CachedApkProviderParamCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = CachedApkProviderParamMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + CachedApkProviderParamMapper.ensureInitialized(); @override - $R call({bool? includeSystemApps, bool? onlyAppsWithLaunchIntent, bool? selectMultipleApps}) => $apply(FieldCopyWithData({ + $R call( + {bool? includeSystemApps, + bool? onlyAppsWithLaunchIntent, + bool? selectMultipleApps}) => + $apply(FieldCopyWithData({ if (includeSystemApps != null) #includeSystemApps: includeSystemApps, - if (onlyAppsWithLaunchIntent != null) #onlyAppsWithLaunchIntent: onlyAppsWithLaunchIntent, + if (onlyAppsWithLaunchIntent != null) + #onlyAppsWithLaunchIntent: onlyAppsWithLaunchIntent, if (selectMultipleApps != null) #selectMultipleApps: selectMultipleApps })); @override CachedApkProviderParam $make(CopyWithData data) => CachedApkProviderParam( - includeSystemApps: data.get(#includeSystemApps, or: $value.includeSystemApps), - onlyAppsWithLaunchIntent: data.get(#onlyAppsWithLaunchIntent, or: $value.onlyAppsWithLaunchIntent), - selectMultipleApps: data.get(#selectMultipleApps, or: $value.selectMultipleApps)); + includeSystemApps: + data.get(#includeSystemApps, or: $value.includeSystemApps), + onlyAppsWithLaunchIntent: data.get(#onlyAppsWithLaunchIntent, + or: $value.onlyAppsWithLaunchIntent), + selectMultipleApps: + data.get(#selectMultipleApps, or: $value.selectMultipleApps)); @override - CachedApkProviderParamCopyWith<$R2, CachedApkProviderParam, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _CachedApkProviderParamCopyWithImpl($value, $cast, t); + CachedApkProviderParamCopyWith<$R2, CachedApkProviderParam, $Out2> + $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _CachedApkProviderParamCopyWithImpl($value, $cast, t); } diff --git a/app/lib/rust/api/crypto.dart b/app/lib/rust/api/crypto.dart index 15ddfb28..e3d7c493 100644 --- a/app/lib/rust/api/crypto.dart +++ b/app/lib/rust/api/crypto.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -7,4 +7,29 @@ import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:localsend_app/rust/frb_generated.dart'; Future verifyCert({required String cert, required String publicKey}) => - RustLib.instance.api.crateApiCryptoVerifyCert(cert: cert, publicKey: publicKey); + RustLib.instance.api + .crateApiCryptoVerifyCert(cert: cert, publicKey: publicKey); + +Future generateKeyPair() => + RustLib.instance.api.crateApiCryptoGenerateKeyPair(); + +class KeyPair { + final String privateKey; + final String publicKey; + + const KeyPair({ + required this.privateKey, + required this.publicKey, + }); + + @override + int get hashCode => privateKey.hashCode ^ publicKey.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is KeyPair && + runtimeType == other.runtimeType && + privateKey == other.privateKey && + publicKey == other.publicKey; +} diff --git a/app/lib/rust/api/logging.dart b/app/lib/rust/api/logging.dart index 8fd3484c..fdf2d9ca 100644 --- a/app/lib/rust/api/logging.dart +++ b/app/lib/rust/api/logging.dart @@ -1,9 +1,10 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:localsend_app/rust/frb_generated.dart'; -Future enableDebugLogging() => RustLib.instance.api.crateApiLoggingEnableDebugLogging(); +Future enableDebugLogging() => + RustLib.instance.api.crateApiLoggingEnableDebugLogging(); diff --git a/app/lib/rust/api/model.dart b/app/lib/rust/api/model.dart index 60de86bc..dc051a34 100644 --- a/app/lib/rust/api/model.dart +++ b/app/lib/rust/api/model.dart @@ -1,12 +1,12 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; import 'package:localsend_app/rust/frb_generated.dart'; -// These types are ignored because they are not used by any `pub` functions: `PrepareUploadRequestDto`, `PrepareUploadResponseDto`, `ProtocolType`, `RegisterDto`, `RegisterResponseDto` +// These types are ignored because they are neither used by any `pub` functions nor (for structs and enums) marked `#[frb(unignore)]`: `PrepareUploadRequestDto`, `PrepareUploadResponseDto`, `ProtocolType`, `RegisterDto`, `RegisterResponseDto` enum DeviceType { mobile, @@ -37,7 +37,14 @@ class FileDto { }); @override - int get hashCode => id.hashCode ^ fileName.hashCode ^ size.hashCode ^ fileType.hashCode ^ sha256.hashCode ^ preview.hashCode ^ metadata.hashCode; + int get hashCode => + id.hashCode ^ + fileName.hashCode ^ + size.hashCode ^ + fileType.hashCode ^ + sha256.hashCode ^ + preview.hashCode ^ + metadata.hashCode; @override bool operator ==(Object other) => @@ -67,5 +74,9 @@ class FileMetadata { @override bool operator ==(Object other) => - identical(this, other) || other is FileMetadata && runtimeType == other.runtimeType && modified == other.modified && accessed == other.accessed; + identical(this, other) || + other is FileMetadata && + runtimeType == other.runtimeType && + modified == other.modified && + accessed == other.accessed; } diff --git a/app/lib/rust/api/webrtc.dart b/app/lib/rust/api/webrtc.dart index 1d60d0be..83f79561 100644 --- a/app/lib/rust/api/webrtc.dart +++ b/app/lib/rust/api/webrtc.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import @@ -11,9 +11,19 @@ import 'package:uuid/uuid.dart'; part 'webrtc.freezed.dart'; +// These functions are ignored because they are not marked as `pub`: `sign` + Stream connect( - {required String uri, required ClientInfoWithoutId info, required FutureOr Function(LsSignalingConnection) onConnection}) => - RustLib.instance.api.crateApiWebrtcConnect(uri: uri, info: info, onConnection: onConnection); + {required String uri, + required ProposingClientInfo info, + required String privateKey, + required FutureOr Function(LsSignalingConnection) + onConnection}) => + RustLib.instance.api.crateApiWebrtcConnect( + uri: uri, + info: info, + privateKey: privateKey, + onConnection: onConnection); // Rust type: RustOpaqueMoi> abstract class LsSignalingConnection implements RustOpaqueInterface { @@ -97,7 +107,13 @@ class ClientInfo { }); @override - int get hashCode => id.hashCode ^ alias.hashCode ^ version.hashCode ^ deviceModel.hashCode ^ deviceType.hashCode ^ token.hashCode; + int get hashCode => + id.hashCode ^ + alias.hashCode ^ + version.hashCode ^ + deviceModel.hashCode ^ + deviceType.hashCode ^ + token.hashCode; @override bool operator ==(Object other) => @@ -128,7 +144,12 @@ class ClientInfoWithoutId { }); @override - int get hashCode => alias.hashCode ^ version.hashCode ^ deviceModel.hashCode ^ deviceType.hashCode ^ token.hashCode; + int get hashCode => + alias.hashCode ^ + version.hashCode ^ + deviceModel.hashCode ^ + deviceType.hashCode ^ + token.hashCode; @override bool operator ==(Object other) => @@ -158,7 +179,11 @@ class ExpectingPublicKey { @override bool operator ==(Object other) => - identical(this, other) || other is ExpectingPublicKey && runtimeType == other.runtimeType && publicKey == other.publicKey && kind == other.kind; + identical(this, other) || + other is ExpectingPublicKey && + runtimeType == other.runtimeType && + publicKey == other.publicKey && + kind == other.kind; } class PinConfig { @@ -175,7 +200,42 @@ class PinConfig { @override bool operator ==(Object other) => - identical(this, other) || other is PinConfig && runtimeType == other.runtimeType && pin == other.pin && maxTries == other.maxTries; + identical(this, other) || + other is PinConfig && + runtimeType == other.runtimeType && + pin == other.pin && + maxTries == other.maxTries; +} + +class ProposingClientInfo { + final String alias; + final String version; + final String? deviceModel; + final DeviceType? deviceType; + + const ProposingClientInfo({ + required this.alias, + required this.version, + this.deviceModel, + this.deviceType, + }); + + @override + int get hashCode => + alias.hashCode ^ + version.hashCode ^ + deviceModel.hashCode ^ + deviceType.hashCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ProposingClientInfo && + runtimeType == other.runtimeType && + alias == other.alias && + version == other.version && + deviceModel == other.deviceModel && + deviceType == other.deviceType; } class RTCFileError { @@ -192,7 +252,11 @@ class RTCFileError { @override bool operator ==(Object other) => - identical(this, other) || other is RTCFileError && runtimeType == other.runtimeType && fileId == other.fileId && error == other.error; + identical(this, other) || + other is RTCFileError && + runtimeType == other.runtimeType && + fileId == other.fileId && + error == other.error; } class RTCSendFileResponse { @@ -212,7 +276,11 @@ class RTCSendFileResponse { @override bool operator ==(Object other) => identical(this, other) || - other is RTCSendFileResponse && runtimeType == other.runtimeType && id == other.id && success == other.success && error == other.error; + other is RTCSendFileResponse && + runtimeType == other.runtimeType && + id == other.id && + success == other.success && + error == other.error; } @freezed @@ -276,5 +344,9 @@ class WsServerSdpMessage { @override bool operator ==(Object other) => identical(this, other) || - other is WsServerSdpMessage && runtimeType == other.runtimeType && peer == other.peer && sessionId == other.sessionId && sdp == other.sdp; + other is WsServerSdpMessage && + runtimeType == other.runtimeType && + peer == other.peer && + sessionId == other.sessionId && + sdp == other.sdp; } diff --git a/app/lib/rust/api/webrtc.freezed.dart b/app/lib/rust/api/webrtc.freezed.dart index d5806dfa..4fa27549 100644 --- a/app/lib/rust/api/webrtc.freezed.dart +++ b/app/lib/rust/api/webrtc.freezed.dart @@ -94,11 +94,13 @@ mixin _$RTCStatus { /// @nodoc abstract class $RTCStatusCopyWith<$Res> { - factory $RTCStatusCopyWith(RTCStatus value, $Res Function(RTCStatus) then) = _$RTCStatusCopyWithImpl<$Res, RTCStatus>; + factory $RTCStatusCopyWith(RTCStatus value, $Res Function(RTCStatus) then) = + _$RTCStatusCopyWithImpl<$Res, RTCStatus>; } /// @nodoc -class _$RTCStatusCopyWithImpl<$Res, $Val extends RTCStatus> implements $RTCStatusCopyWith<$Res> { +class _$RTCStatusCopyWithImpl<$Res, $Val extends RTCStatus> + implements $RTCStatusCopyWith<$Res> { _$RTCStatusCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -112,14 +114,19 @@ class _$RTCStatusCopyWithImpl<$Res, $Val extends RTCStatus> implements $RTCStatu /// @nodoc abstract class _$$RTCStatus_SdpExchangedImplCopyWith<$Res> { - factory _$$RTCStatus_SdpExchangedImplCopyWith(_$RTCStatus_SdpExchangedImpl value, $Res Function(_$RTCStatus_SdpExchangedImpl) then) = + factory _$$RTCStatus_SdpExchangedImplCopyWith( + _$RTCStatus_SdpExchangedImpl value, + $Res Function(_$RTCStatus_SdpExchangedImpl) then) = __$$RTCStatus_SdpExchangedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_SdpExchangedImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_SdpExchangedImpl> +class __$$RTCStatus_SdpExchangedImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_SdpExchangedImpl> implements _$$RTCStatus_SdpExchangedImplCopyWith<$Res> { - __$$RTCStatus_SdpExchangedImplCopyWithImpl(_$RTCStatus_SdpExchangedImpl _value, $Res Function(_$RTCStatus_SdpExchangedImpl) _then) + __$$RTCStatus_SdpExchangedImplCopyWithImpl( + _$RTCStatus_SdpExchangedImpl _value, + $Res Function(_$RTCStatus_SdpExchangedImpl) _then) : super(_value, _then); /// Create a copy of RTCStatus @@ -138,7 +145,9 @@ class _$RTCStatus_SdpExchangedImpl extends RTCStatus_SdpExchanged { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_SdpExchangedImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$RTCStatus_SdpExchangedImpl); } @override @@ -250,14 +259,18 @@ abstract class RTCStatus_SdpExchanged extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_ConnectedImplCopyWith<$Res> { - factory _$$RTCStatus_ConnectedImplCopyWith(_$RTCStatus_ConnectedImpl value, $Res Function(_$RTCStatus_ConnectedImpl) then) = + factory _$$RTCStatus_ConnectedImplCopyWith(_$RTCStatus_ConnectedImpl value, + $Res Function(_$RTCStatus_ConnectedImpl) then) = __$$RTCStatus_ConnectedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_ConnectedImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_ConnectedImpl> +class __$$RTCStatus_ConnectedImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_ConnectedImpl> implements _$$RTCStatus_ConnectedImplCopyWith<$Res> { - __$$RTCStatus_ConnectedImplCopyWithImpl(_$RTCStatus_ConnectedImpl _value, $Res Function(_$RTCStatus_ConnectedImpl) _then) : super(_value, _then); + __$$RTCStatus_ConnectedImplCopyWithImpl(_$RTCStatus_ConnectedImpl _value, + $Res Function(_$RTCStatus_ConnectedImpl) _then) + : super(_value, _then); /// Create a copy of RTCStatus /// with the given fields replaced by the non-null parameter values. @@ -275,7 +288,9 @@ class _$RTCStatus_ConnectedImpl extends RTCStatus_Connected { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_ConnectedImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$RTCStatus_ConnectedImpl); } @override @@ -387,14 +402,18 @@ abstract class RTCStatus_Connected extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_PinRequiredImplCopyWith<$Res> { - factory _$$RTCStatus_PinRequiredImplCopyWith(_$RTCStatus_PinRequiredImpl value, $Res Function(_$RTCStatus_PinRequiredImpl) then) = + factory _$$RTCStatus_PinRequiredImplCopyWith( + _$RTCStatus_PinRequiredImpl value, + $Res Function(_$RTCStatus_PinRequiredImpl) then) = __$$RTCStatus_PinRequiredImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_PinRequiredImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_PinRequiredImpl> +class __$$RTCStatus_PinRequiredImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_PinRequiredImpl> implements _$$RTCStatus_PinRequiredImplCopyWith<$Res> { - __$$RTCStatus_PinRequiredImplCopyWithImpl(_$RTCStatus_PinRequiredImpl _value, $Res Function(_$RTCStatus_PinRequiredImpl) _then) + __$$RTCStatus_PinRequiredImplCopyWithImpl(_$RTCStatus_PinRequiredImpl _value, + $Res Function(_$RTCStatus_PinRequiredImpl) _then) : super(_value, _then); /// Create a copy of RTCStatus @@ -413,7 +432,9 @@ class _$RTCStatus_PinRequiredImpl extends RTCStatus_PinRequired { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_PinRequiredImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$RTCStatus_PinRequiredImpl); } @override @@ -525,14 +546,19 @@ abstract class RTCStatus_PinRequired extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_TooManyAttemptsImplCopyWith<$Res> { - factory _$$RTCStatus_TooManyAttemptsImplCopyWith(_$RTCStatus_TooManyAttemptsImpl value, $Res Function(_$RTCStatus_TooManyAttemptsImpl) then) = + factory _$$RTCStatus_TooManyAttemptsImplCopyWith( + _$RTCStatus_TooManyAttemptsImpl value, + $Res Function(_$RTCStatus_TooManyAttemptsImpl) then) = __$$RTCStatus_TooManyAttemptsImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_TooManyAttemptsImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_TooManyAttemptsImpl> +class __$$RTCStatus_TooManyAttemptsImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_TooManyAttemptsImpl> implements _$$RTCStatus_TooManyAttemptsImplCopyWith<$Res> { - __$$RTCStatus_TooManyAttemptsImplCopyWithImpl(_$RTCStatus_TooManyAttemptsImpl _value, $Res Function(_$RTCStatus_TooManyAttemptsImpl) _then) + __$$RTCStatus_TooManyAttemptsImplCopyWithImpl( + _$RTCStatus_TooManyAttemptsImpl _value, + $Res Function(_$RTCStatus_TooManyAttemptsImpl) _then) : super(_value, _then); /// Create a copy of RTCStatus @@ -551,7 +577,9 @@ class _$RTCStatus_TooManyAttemptsImpl extends RTCStatus_TooManyAttempts { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_TooManyAttemptsImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$RTCStatus_TooManyAttemptsImpl); } @override @@ -663,14 +691,18 @@ abstract class RTCStatus_TooManyAttempts extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_DeclinedImplCopyWith<$Res> { - factory _$$RTCStatus_DeclinedImplCopyWith(_$RTCStatus_DeclinedImpl value, $Res Function(_$RTCStatus_DeclinedImpl) then) = + factory _$$RTCStatus_DeclinedImplCopyWith(_$RTCStatus_DeclinedImpl value, + $Res Function(_$RTCStatus_DeclinedImpl) then) = __$$RTCStatus_DeclinedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_DeclinedImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_DeclinedImpl> +class __$$RTCStatus_DeclinedImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_DeclinedImpl> implements _$$RTCStatus_DeclinedImplCopyWith<$Res> { - __$$RTCStatus_DeclinedImplCopyWithImpl(_$RTCStatus_DeclinedImpl _value, $Res Function(_$RTCStatus_DeclinedImpl) _then) : super(_value, _then); + __$$RTCStatus_DeclinedImplCopyWithImpl(_$RTCStatus_DeclinedImpl _value, + $Res Function(_$RTCStatus_DeclinedImpl) _then) + : super(_value, _then); /// Create a copy of RTCStatus /// with the given fields replaced by the non-null parameter values. @@ -688,7 +720,8 @@ class _$RTCStatus_DeclinedImpl extends RTCStatus_Declined { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_DeclinedImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && other is _$RTCStatus_DeclinedImpl); } @override @@ -800,14 +833,18 @@ abstract class RTCStatus_Declined extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_SendingImplCopyWith<$Res> { - factory _$$RTCStatus_SendingImplCopyWith(_$RTCStatus_SendingImpl value, $Res Function(_$RTCStatus_SendingImpl) then) = + factory _$$RTCStatus_SendingImplCopyWith(_$RTCStatus_SendingImpl value, + $Res Function(_$RTCStatus_SendingImpl) then) = __$$RTCStatus_SendingImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_SendingImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_SendingImpl> +class __$$RTCStatus_SendingImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_SendingImpl> implements _$$RTCStatus_SendingImplCopyWith<$Res> { - __$$RTCStatus_SendingImplCopyWithImpl(_$RTCStatus_SendingImpl _value, $Res Function(_$RTCStatus_SendingImpl) _then) : super(_value, _then); + __$$RTCStatus_SendingImplCopyWithImpl(_$RTCStatus_SendingImpl _value, + $Res Function(_$RTCStatus_SendingImpl) _then) + : super(_value, _then); /// Create a copy of RTCStatus /// with the given fields replaced by the non-null parameter values. @@ -825,7 +862,8 @@ class _$RTCStatus_SendingImpl extends RTCStatus_Sending { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_SendingImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && other is _$RTCStatus_SendingImpl); } @override @@ -937,14 +975,18 @@ abstract class RTCStatus_Sending extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_FinishedImplCopyWith<$Res> { - factory _$$RTCStatus_FinishedImplCopyWith(_$RTCStatus_FinishedImpl value, $Res Function(_$RTCStatus_FinishedImpl) then) = + factory _$$RTCStatus_FinishedImplCopyWith(_$RTCStatus_FinishedImpl value, + $Res Function(_$RTCStatus_FinishedImpl) then) = __$$RTCStatus_FinishedImplCopyWithImpl<$Res>; } /// @nodoc -class __$$RTCStatus_FinishedImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_FinishedImpl> +class __$$RTCStatus_FinishedImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_FinishedImpl> implements _$$RTCStatus_FinishedImplCopyWith<$Res> { - __$$RTCStatus_FinishedImplCopyWithImpl(_$RTCStatus_FinishedImpl _value, $Res Function(_$RTCStatus_FinishedImpl) _then) : super(_value, _then); + __$$RTCStatus_FinishedImplCopyWithImpl(_$RTCStatus_FinishedImpl _value, + $Res Function(_$RTCStatus_FinishedImpl) _then) + : super(_value, _then); /// Create a copy of RTCStatus /// with the given fields replaced by the non-null parameter values. @@ -962,7 +1004,8 @@ class _$RTCStatus_FinishedImpl extends RTCStatus_Finished { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType && other is _$RTCStatus_FinishedImpl); + return identical(this, other) || + (other.runtimeType == runtimeType && other is _$RTCStatus_FinishedImpl); } @override @@ -1074,16 +1117,20 @@ abstract class RTCStatus_Finished extends RTCStatus { /// @nodoc abstract class _$$RTCStatus_ErrorImplCopyWith<$Res> { - factory _$$RTCStatus_ErrorImplCopyWith(_$RTCStatus_ErrorImpl value, $Res Function(_$RTCStatus_ErrorImpl) then) = + factory _$$RTCStatus_ErrorImplCopyWith(_$RTCStatus_ErrorImpl value, + $Res Function(_$RTCStatus_ErrorImpl) then) = __$$RTCStatus_ErrorImplCopyWithImpl<$Res>; @useResult $Res call({String field0}); } /// @nodoc -class __$$RTCStatus_ErrorImplCopyWithImpl<$Res> extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_ErrorImpl> +class __$$RTCStatus_ErrorImplCopyWithImpl<$Res> + extends _$RTCStatusCopyWithImpl<$Res, _$RTCStatus_ErrorImpl> implements _$$RTCStatus_ErrorImplCopyWith<$Res> { - __$$RTCStatus_ErrorImplCopyWithImpl(_$RTCStatus_ErrorImpl _value, $Res Function(_$RTCStatus_ErrorImpl) _then) : super(_value, _then); + __$$RTCStatus_ErrorImplCopyWithImpl( + _$RTCStatus_ErrorImpl _value, $Res Function(_$RTCStatus_ErrorImpl) _then) + : super(_value, _then); /// Create a copy of RTCStatus /// with the given fields replaced by the non-null parameter values. @@ -1117,7 +1164,9 @@ class _$RTCStatus_ErrorImpl extends RTCStatus_Error { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$RTCStatus_ErrorImpl && (identical(other.field0, field0) || other.field0 == field0)); + (other.runtimeType == runtimeType && + other is _$RTCStatus_ErrorImpl && + (identical(other.field0, field0) || other.field0 == field0)); } @override @@ -1128,7 +1177,9 @@ class _$RTCStatus_ErrorImpl extends RTCStatus_Error { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$RTCStatus_ErrorImplCopyWith<_$RTCStatus_ErrorImpl> get copyWith => __$$RTCStatus_ErrorImplCopyWithImpl<_$RTCStatus_ErrorImpl>(this, _$identity); + _$$RTCStatus_ErrorImplCopyWith<_$RTCStatus_ErrorImpl> get copyWith => + __$$RTCStatus_ErrorImplCopyWithImpl<_$RTCStatus_ErrorImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1238,7 +1289,8 @@ abstract class RTCStatus_Error extends RTCStatus { /// Create a copy of RTCStatus /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$RTCStatus_ErrorImplCopyWith<_$RTCStatus_ErrorImpl> get copyWith => throw _privateConstructorUsedError; + _$$RTCStatus_ErrorImplCopyWith<_$RTCStatus_ErrorImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc @@ -1315,11 +1367,14 @@ mixin _$WsServerMessage { /// @nodoc abstract class $WsServerMessageCopyWith<$Res> { - factory $WsServerMessageCopyWith(WsServerMessage value, $Res Function(WsServerMessage) then) = _$WsServerMessageCopyWithImpl<$Res, WsServerMessage>; + factory $WsServerMessageCopyWith( + WsServerMessage value, $Res Function(WsServerMessage) then) = + _$WsServerMessageCopyWithImpl<$Res, WsServerMessage>; } /// @nodoc -class _$WsServerMessageCopyWithImpl<$Res, $Val extends WsServerMessage> implements $WsServerMessageCopyWith<$Res> { +class _$WsServerMessageCopyWithImpl<$Res, $Val extends WsServerMessage> + implements $WsServerMessageCopyWith<$Res> { _$WsServerMessageCopyWithImpl(this._value, this._then); // ignore: unused_field @@ -1333,16 +1388,20 @@ class _$WsServerMessageCopyWithImpl<$Res, $Val extends WsServerMessage> implemen /// @nodoc abstract class _$$WsServerMessage_HelloImplCopyWith<$Res> { - factory _$$WsServerMessage_HelloImplCopyWith(_$WsServerMessage_HelloImpl value, $Res Function(_$WsServerMessage_HelloImpl) then) = + factory _$$WsServerMessage_HelloImplCopyWith( + _$WsServerMessage_HelloImpl value, + $Res Function(_$WsServerMessage_HelloImpl) then) = __$$WsServerMessage_HelloImplCopyWithImpl<$Res>; @useResult $Res call({ClientInfo client, List peers}); } /// @nodoc -class __$$WsServerMessage_HelloImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_HelloImpl> +class __$$WsServerMessage_HelloImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_HelloImpl> implements _$$WsServerMessage_HelloImplCopyWith<$Res> { - __$$WsServerMessage_HelloImplCopyWithImpl(_$WsServerMessage_HelloImpl _value, $Res Function(_$WsServerMessage_HelloImpl) _then) + __$$WsServerMessage_HelloImplCopyWithImpl(_$WsServerMessage_HelloImpl _value, + $Res Function(_$WsServerMessage_HelloImpl) _then) : super(_value, _then); /// Create a copy of WsServerMessage @@ -1369,7 +1428,8 @@ class __$$WsServerMessage_HelloImplCopyWithImpl<$Res> extends _$WsServerMessageC /// @nodoc class _$WsServerMessage_HelloImpl extends WsServerMessage_Hello { - const _$WsServerMessage_HelloImpl({required this.client, required final List peers}) + const _$WsServerMessage_HelloImpl( + {required this.client, required final List peers}) : _peers = peers, super._(); @@ -1398,15 +1458,17 @@ class _$WsServerMessage_HelloImpl extends WsServerMessage_Hello { } @override - int get hashCode => Object.hash(runtimeType, client, const DeepCollectionEquality().hash(_peers)); + int get hashCode => Object.hash( + runtimeType, client, const DeepCollectionEquality().hash(_peers)); /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_HelloImplCopyWith<_$WsServerMessage_HelloImpl> get copyWith => - __$$WsServerMessage_HelloImplCopyWithImpl<_$WsServerMessage_HelloImpl>(this, _$identity); + _$$WsServerMessage_HelloImplCopyWith<_$WsServerMessage_HelloImpl> + get copyWith => __$$WsServerMessage_HelloImplCopyWithImpl< + _$WsServerMessage_HelloImpl>(this, _$identity); @override @optionalTypeArgs @@ -1502,7 +1564,9 @@ class _$WsServerMessage_HelloImpl extends WsServerMessage_Hello { } abstract class WsServerMessage_Hello extends WsServerMessage { - const factory WsServerMessage_Hello({required final ClientInfo client, required final List peers}) = _$WsServerMessage_HelloImpl; + const factory WsServerMessage_Hello( + {required final ClientInfo client, + required final List peers}) = _$WsServerMessage_HelloImpl; const WsServerMessage_Hello._() : super._(); ClientInfo get client; @@ -1511,21 +1575,26 @@ abstract class WsServerMessage_Hello extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_HelloImplCopyWith<_$WsServerMessage_HelloImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_HelloImplCopyWith<_$WsServerMessage_HelloImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$WsServerMessage_JoinImplCopyWith<$Res> { - factory _$$WsServerMessage_JoinImplCopyWith(_$WsServerMessage_JoinImpl value, $Res Function(_$WsServerMessage_JoinImpl) then) = + factory _$$WsServerMessage_JoinImplCopyWith(_$WsServerMessage_JoinImpl value, + $Res Function(_$WsServerMessage_JoinImpl) then) = __$$WsServerMessage_JoinImplCopyWithImpl<$Res>; @useResult $Res call({ClientInfo peer}); } /// @nodoc -class __$$WsServerMessage_JoinImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_JoinImpl> +class __$$WsServerMessage_JoinImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_JoinImpl> implements _$$WsServerMessage_JoinImplCopyWith<$Res> { - __$$WsServerMessage_JoinImplCopyWithImpl(_$WsServerMessage_JoinImpl _value, $Res Function(_$WsServerMessage_JoinImpl) _then) : super(_value, _then); + __$$WsServerMessage_JoinImplCopyWithImpl(_$WsServerMessage_JoinImpl _value, + $Res Function(_$WsServerMessage_JoinImpl) _then) + : super(_value, _then); /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @@ -1559,7 +1628,9 @@ class _$WsServerMessage_JoinImpl extends WsServerMessage_Join { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$WsServerMessage_JoinImpl && (identical(other.peer, peer) || other.peer == peer)); + (other.runtimeType == runtimeType && + other is _$WsServerMessage_JoinImpl && + (identical(other.peer, peer) || other.peer == peer)); } @override @@ -1570,8 +1641,10 @@ class _$WsServerMessage_JoinImpl extends WsServerMessage_Join { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_JoinImplCopyWith<_$WsServerMessage_JoinImpl> get copyWith => - __$$WsServerMessage_JoinImplCopyWithImpl<_$WsServerMessage_JoinImpl>(this, _$identity); + _$$WsServerMessage_JoinImplCopyWith<_$WsServerMessage_JoinImpl> + get copyWith => + __$$WsServerMessage_JoinImplCopyWithImpl<_$WsServerMessage_JoinImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1667,7 +1740,8 @@ class _$WsServerMessage_JoinImpl extends WsServerMessage_Join { } abstract class WsServerMessage_Join extends WsServerMessage { - const factory WsServerMessage_Join({required final ClientInfo peer}) = _$WsServerMessage_JoinImpl; + const factory WsServerMessage_Join({required final ClientInfo peer}) = + _$WsServerMessage_JoinImpl; const WsServerMessage_Join._() : super._(); ClientInfo get peer; @@ -1675,21 +1749,27 @@ abstract class WsServerMessage_Join extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_JoinImplCopyWith<_$WsServerMessage_JoinImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_JoinImplCopyWith<_$WsServerMessage_JoinImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$WsServerMessage_UpdateImplCopyWith<$Res> { - factory _$$WsServerMessage_UpdateImplCopyWith(_$WsServerMessage_UpdateImpl value, $Res Function(_$WsServerMessage_UpdateImpl) then) = + factory _$$WsServerMessage_UpdateImplCopyWith( + _$WsServerMessage_UpdateImpl value, + $Res Function(_$WsServerMessage_UpdateImpl) then) = __$$WsServerMessage_UpdateImplCopyWithImpl<$Res>; @useResult $Res call({ClientInfo peer}); } /// @nodoc -class __$$WsServerMessage_UpdateImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_UpdateImpl> +class __$$WsServerMessage_UpdateImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_UpdateImpl> implements _$$WsServerMessage_UpdateImplCopyWith<$Res> { - __$$WsServerMessage_UpdateImplCopyWithImpl(_$WsServerMessage_UpdateImpl _value, $Res Function(_$WsServerMessage_UpdateImpl) _then) + __$$WsServerMessage_UpdateImplCopyWithImpl( + _$WsServerMessage_UpdateImpl _value, + $Res Function(_$WsServerMessage_UpdateImpl) _then) : super(_value, _then); /// Create a copy of WsServerMessage @@ -1724,7 +1804,9 @@ class _$WsServerMessage_UpdateImpl extends WsServerMessage_Update { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$WsServerMessage_UpdateImpl && (identical(other.peer, peer) || other.peer == peer)); + (other.runtimeType == runtimeType && + other is _$WsServerMessage_UpdateImpl && + (identical(other.peer, peer) || other.peer == peer)); } @override @@ -1735,8 +1817,9 @@ class _$WsServerMessage_UpdateImpl extends WsServerMessage_Update { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_UpdateImplCopyWith<_$WsServerMessage_UpdateImpl> get copyWith => - __$$WsServerMessage_UpdateImplCopyWithImpl<_$WsServerMessage_UpdateImpl>(this, _$identity); + _$$WsServerMessage_UpdateImplCopyWith<_$WsServerMessage_UpdateImpl> + get copyWith => __$$WsServerMessage_UpdateImplCopyWithImpl< + _$WsServerMessage_UpdateImpl>(this, _$identity); @override @optionalTypeArgs @@ -1832,7 +1915,8 @@ class _$WsServerMessage_UpdateImpl extends WsServerMessage_Update { } abstract class WsServerMessage_Update extends WsServerMessage { - const factory WsServerMessage_Update({required final ClientInfo peer}) = _$WsServerMessage_UpdateImpl; + const factory WsServerMessage_Update({required final ClientInfo peer}) = + _$WsServerMessage_UpdateImpl; const WsServerMessage_Update._() : super._(); ClientInfo get peer; @@ -1840,21 +1924,26 @@ abstract class WsServerMessage_Update extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_UpdateImplCopyWith<_$WsServerMessage_UpdateImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_UpdateImplCopyWith<_$WsServerMessage_UpdateImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$WsServerMessage_LeftImplCopyWith<$Res> { - factory _$$WsServerMessage_LeftImplCopyWith(_$WsServerMessage_LeftImpl value, $Res Function(_$WsServerMessage_LeftImpl) then) = + factory _$$WsServerMessage_LeftImplCopyWith(_$WsServerMessage_LeftImpl value, + $Res Function(_$WsServerMessage_LeftImpl) then) = __$$WsServerMessage_LeftImplCopyWithImpl<$Res>; @useResult $Res call({UuidValue peerId}); } /// @nodoc -class __$$WsServerMessage_LeftImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_LeftImpl> +class __$$WsServerMessage_LeftImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_LeftImpl> implements _$$WsServerMessage_LeftImplCopyWith<$Res> { - __$$WsServerMessage_LeftImplCopyWithImpl(_$WsServerMessage_LeftImpl _value, $Res Function(_$WsServerMessage_LeftImpl) _then) : super(_value, _then); + __$$WsServerMessage_LeftImplCopyWithImpl(_$WsServerMessage_LeftImpl _value, + $Res Function(_$WsServerMessage_LeftImpl) _then) + : super(_value, _then); /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @@ -1888,7 +1977,9 @@ class _$WsServerMessage_LeftImpl extends WsServerMessage_Left { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$WsServerMessage_LeftImpl && (identical(other.peerId, peerId) || other.peerId == peerId)); + (other.runtimeType == runtimeType && + other is _$WsServerMessage_LeftImpl && + (identical(other.peerId, peerId) || other.peerId == peerId)); } @override @@ -1899,8 +1990,10 @@ class _$WsServerMessage_LeftImpl extends WsServerMessage_Left { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_LeftImplCopyWith<_$WsServerMessage_LeftImpl> get copyWith => - __$$WsServerMessage_LeftImplCopyWithImpl<_$WsServerMessage_LeftImpl>(this, _$identity); + _$$WsServerMessage_LeftImplCopyWith<_$WsServerMessage_LeftImpl> + get copyWith => + __$$WsServerMessage_LeftImplCopyWithImpl<_$WsServerMessage_LeftImpl>( + this, _$identity); @override @optionalTypeArgs @@ -1996,7 +2089,8 @@ class _$WsServerMessage_LeftImpl extends WsServerMessage_Left { } abstract class WsServerMessage_Left extends WsServerMessage { - const factory WsServerMessage_Left({required final UuidValue peerId}) = _$WsServerMessage_LeftImpl; + const factory WsServerMessage_Left({required final UuidValue peerId}) = + _$WsServerMessage_LeftImpl; const WsServerMessage_Left._() : super._(); UuidValue get peerId; @@ -2004,21 +2098,26 @@ abstract class WsServerMessage_Left extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_LeftImplCopyWith<_$WsServerMessage_LeftImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_LeftImplCopyWith<_$WsServerMessage_LeftImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$WsServerMessage_OfferImplCopyWith<$Res> { - factory _$$WsServerMessage_OfferImplCopyWith(_$WsServerMessage_OfferImpl value, $Res Function(_$WsServerMessage_OfferImpl) then) = + factory _$$WsServerMessage_OfferImplCopyWith( + _$WsServerMessage_OfferImpl value, + $Res Function(_$WsServerMessage_OfferImpl) then) = __$$WsServerMessage_OfferImplCopyWithImpl<$Res>; @useResult $Res call({WsServerSdpMessage field0}); } /// @nodoc -class __$$WsServerMessage_OfferImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_OfferImpl> +class __$$WsServerMessage_OfferImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_OfferImpl> implements _$$WsServerMessage_OfferImplCopyWith<$Res> { - __$$WsServerMessage_OfferImplCopyWithImpl(_$WsServerMessage_OfferImpl _value, $Res Function(_$WsServerMessage_OfferImpl) _then) + __$$WsServerMessage_OfferImplCopyWithImpl(_$WsServerMessage_OfferImpl _value, + $Res Function(_$WsServerMessage_OfferImpl) _then) : super(_value, _then); /// Create a copy of WsServerMessage @@ -2053,7 +2152,9 @@ class _$WsServerMessage_OfferImpl extends WsServerMessage_Offer { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$WsServerMessage_OfferImpl && (identical(other.field0, field0) || other.field0 == field0)); + (other.runtimeType == runtimeType && + other is _$WsServerMessage_OfferImpl && + (identical(other.field0, field0) || other.field0 == field0)); } @override @@ -2064,8 +2165,9 @@ class _$WsServerMessage_OfferImpl extends WsServerMessage_Offer { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_OfferImplCopyWith<_$WsServerMessage_OfferImpl> get copyWith => - __$$WsServerMessage_OfferImplCopyWithImpl<_$WsServerMessage_OfferImpl>(this, _$identity); + _$$WsServerMessage_OfferImplCopyWith<_$WsServerMessage_OfferImpl> + get copyWith => __$$WsServerMessage_OfferImplCopyWithImpl< + _$WsServerMessage_OfferImpl>(this, _$identity); @override @optionalTypeArgs @@ -2161,7 +2263,8 @@ class _$WsServerMessage_OfferImpl extends WsServerMessage_Offer { } abstract class WsServerMessage_Offer extends WsServerMessage { - const factory WsServerMessage_Offer(final WsServerSdpMessage field0) = _$WsServerMessage_OfferImpl; + const factory WsServerMessage_Offer(final WsServerSdpMessage field0) = + _$WsServerMessage_OfferImpl; const WsServerMessage_Offer._() : super._(); WsServerSdpMessage get field0; @@ -2169,21 +2272,27 @@ abstract class WsServerMessage_Offer extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_OfferImplCopyWith<_$WsServerMessage_OfferImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_OfferImplCopyWith<_$WsServerMessage_OfferImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$WsServerMessage_AnswerImplCopyWith<$Res> { - factory _$$WsServerMessage_AnswerImplCopyWith(_$WsServerMessage_AnswerImpl value, $Res Function(_$WsServerMessage_AnswerImpl) then) = + factory _$$WsServerMessage_AnswerImplCopyWith( + _$WsServerMessage_AnswerImpl value, + $Res Function(_$WsServerMessage_AnswerImpl) then) = __$$WsServerMessage_AnswerImplCopyWithImpl<$Res>; @useResult $Res call({WsServerSdpMessage field0}); } /// @nodoc -class __$$WsServerMessage_AnswerImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_AnswerImpl> +class __$$WsServerMessage_AnswerImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_AnswerImpl> implements _$$WsServerMessage_AnswerImplCopyWith<$Res> { - __$$WsServerMessage_AnswerImplCopyWithImpl(_$WsServerMessage_AnswerImpl _value, $Res Function(_$WsServerMessage_AnswerImpl) _then) + __$$WsServerMessage_AnswerImplCopyWithImpl( + _$WsServerMessage_AnswerImpl _value, + $Res Function(_$WsServerMessage_AnswerImpl) _then) : super(_value, _then); /// Create a copy of WsServerMessage @@ -2218,7 +2327,9 @@ class _$WsServerMessage_AnswerImpl extends WsServerMessage_Answer { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$WsServerMessage_AnswerImpl && (identical(other.field0, field0) || other.field0 == field0)); + (other.runtimeType == runtimeType && + other is _$WsServerMessage_AnswerImpl && + (identical(other.field0, field0) || other.field0 == field0)); } @override @@ -2229,8 +2340,9 @@ class _$WsServerMessage_AnswerImpl extends WsServerMessage_Answer { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_AnswerImplCopyWith<_$WsServerMessage_AnswerImpl> get copyWith => - __$$WsServerMessage_AnswerImplCopyWithImpl<_$WsServerMessage_AnswerImpl>(this, _$identity); + _$$WsServerMessage_AnswerImplCopyWith<_$WsServerMessage_AnswerImpl> + get copyWith => __$$WsServerMessage_AnswerImplCopyWithImpl< + _$WsServerMessage_AnswerImpl>(this, _$identity); @override @optionalTypeArgs @@ -2326,7 +2438,8 @@ class _$WsServerMessage_AnswerImpl extends WsServerMessage_Answer { } abstract class WsServerMessage_Answer extends WsServerMessage { - const factory WsServerMessage_Answer(final WsServerSdpMessage field0) = _$WsServerMessage_AnswerImpl; + const factory WsServerMessage_Answer(final WsServerSdpMessage field0) = + _$WsServerMessage_AnswerImpl; const WsServerMessage_Answer._() : super._(); WsServerSdpMessage get field0; @@ -2334,21 +2447,26 @@ abstract class WsServerMessage_Answer extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_AnswerImplCopyWith<_$WsServerMessage_AnswerImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_AnswerImplCopyWith<_$WsServerMessage_AnswerImpl> + get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class _$$WsServerMessage_ErrorImplCopyWith<$Res> { - factory _$$WsServerMessage_ErrorImplCopyWith(_$WsServerMessage_ErrorImpl value, $Res Function(_$WsServerMessage_ErrorImpl) then) = + factory _$$WsServerMessage_ErrorImplCopyWith( + _$WsServerMessage_ErrorImpl value, + $Res Function(_$WsServerMessage_ErrorImpl) then) = __$$WsServerMessage_ErrorImplCopyWithImpl<$Res>; @useResult $Res call({int code}); } /// @nodoc -class __$$WsServerMessage_ErrorImplCopyWithImpl<$Res> extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_ErrorImpl> +class __$$WsServerMessage_ErrorImplCopyWithImpl<$Res> + extends _$WsServerMessageCopyWithImpl<$Res, _$WsServerMessage_ErrorImpl> implements _$$WsServerMessage_ErrorImplCopyWith<$Res> { - __$$WsServerMessage_ErrorImplCopyWithImpl(_$WsServerMessage_ErrorImpl _value, $Res Function(_$WsServerMessage_ErrorImpl) _then) + __$$WsServerMessage_ErrorImplCopyWithImpl(_$WsServerMessage_ErrorImpl _value, + $Res Function(_$WsServerMessage_ErrorImpl) _then) : super(_value, _then); /// Create a copy of WsServerMessage @@ -2383,7 +2501,9 @@ class _$WsServerMessage_ErrorImpl extends WsServerMessage_Error { @override bool operator ==(Object other) { return identical(this, other) || - (other.runtimeType == runtimeType && other is _$WsServerMessage_ErrorImpl && (identical(other.code, code) || other.code == code)); + (other.runtimeType == runtimeType && + other is _$WsServerMessage_ErrorImpl && + (identical(other.code, code) || other.code == code)); } @override @@ -2394,8 +2514,9 @@ class _$WsServerMessage_ErrorImpl extends WsServerMessage_Error { @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') - _$$WsServerMessage_ErrorImplCopyWith<_$WsServerMessage_ErrorImpl> get copyWith => - __$$WsServerMessage_ErrorImplCopyWithImpl<_$WsServerMessage_ErrorImpl>(this, _$identity); + _$$WsServerMessage_ErrorImplCopyWith<_$WsServerMessage_ErrorImpl> + get copyWith => __$$WsServerMessage_ErrorImplCopyWithImpl< + _$WsServerMessage_ErrorImpl>(this, _$identity); @override @optionalTypeArgs @@ -2491,7 +2612,8 @@ class _$WsServerMessage_ErrorImpl extends WsServerMessage_Error { } abstract class WsServerMessage_Error extends WsServerMessage { - const factory WsServerMessage_Error({required final int code}) = _$WsServerMessage_ErrorImpl; + const factory WsServerMessage_Error({required final int code}) = + _$WsServerMessage_ErrorImpl; const WsServerMessage_Error._() : super._(); int get code; @@ -2499,5 +2621,6 @@ abstract class WsServerMessage_Error extends WsServerMessage { /// Create a copy of WsServerMessage /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) - _$$WsServerMessage_ErrorImplCopyWith<_$WsServerMessage_ErrorImpl> get copyWith => throw _privateConstructorUsedError; + _$$WsServerMessage_ErrorImplCopyWith<_$WsServerMessage_ErrorImpl> + get copyWith => throw _privateConstructorUsedError; } diff --git a/app/lib/rust/frb_generated.dart b/app/lib/rust/frb_generated.dart index 3464e469..e397c5a6 100644 --- a/app/lib/rust/frb_generated.dart +++ b/app/lib/rust/frb_generated.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field @@ -12,7 +12,8 @@ import 'package:localsend_app/rust/api/logging.dart'; import 'package:localsend_app/rust/api/model.dart'; import 'package:localsend_app/rust/api/webrtc.dart'; import 'package:localsend_app/rust/frb_generated.dart'; -import 'package:localsend_app/rust/frb_generated.io.dart' if (dart.library.js_interop) 'frb_generated.web.dart'; +import 'package:localsend_app/rust/frb_generated.io.dart' + if (dart.library.js_interop) 'frb_generated.web.dart'; import 'package:uuid/uuid.dart'; /// Main entrypoint of the Rust API @@ -27,11 +28,13 @@ class RustLib extends BaseEntrypoint { RustLibApi? api, BaseHandler? handler, ExternalLibrary? externalLibrary, + bool forceSameCodegenVersion = true, }) async { await instance.initImpl( api: api, handler: handler, externalLibrary: externalLibrary, + forceSameCodegenVersion: forceSameCodegenVersion, ); } @@ -52,24 +55,28 @@ class RustLib extends BaseEntrypoint { static void dispose() => instance.disposeImpl(); @override - ApiImplConstructor get apiImplConstructor => RustLibApiImpl.new; + ApiImplConstructor get apiImplConstructor => + RustLibApiImpl.new; @override - WireConstructor get wireConstructor => RustLibWire.fromExternalLibrary; + WireConstructor get wireConstructor => + RustLibWire.fromExternalLibrary; @override Future executeRustInitializers() async {} @override - ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => kDefaultExternalLibraryLoaderConfig; + ExternalLibraryLoaderConfig get defaultExternalLibraryLoaderConfig => + kDefaultExternalLibraryLoaderConfig; @override - String get codegenVersion => '2.7.1'; + String get codegenVersion => '2.11.1'; @override - int get rustContentHash => -1025191501; + int get rustContentHash => 1108156133; - static const kDefaultExternalLibraryLoaderConfig = ExternalLibraryLoaderConfig( + static const kDefaultExternalLibraryLoaderConfig = + ExternalLibraryLoaderConfig( stem: 'rust_lib_localsend_app', ioDirectory: 'rust/target/release/', webPrefix: 'pkg/', @@ -94,76 +101,115 @@ abstract class RustLibApi extends BaseApi { PinConfig? pin, required List files}); - Future crateApiWebrtcLsSignalingConnectionUpdateInfo({required LsSignalingConnection that, required ClientInfoWithoutId info}); + Future crateApiWebrtcLsSignalingConnectionUpdateInfo( + {required LsSignalingConnection that, required ClientInfoWithoutId info}); - Future crateApiWebrtcRtcFileReceiverGetFileId({required RtcFileReceiver that}); + Future crateApiWebrtcRtcFileReceiverGetFileId( + {required RtcFileReceiver that}); - Stream crateApiWebrtcRtcFileReceiverReceive({required RtcFileReceiver that}); + Stream crateApiWebrtcRtcFileReceiverReceive( + {required RtcFileReceiver that}); - Future crateApiWebrtcRtcFileSenderSend({required RtcFileSender that, required List data}); + Future crateApiWebrtcRtcFileSenderSend( + {required RtcFileSender that, required List data}); - Future crateApiWebrtcRtcReceiveControllerDecline({required RtcReceiveController that}); + Future crateApiWebrtcRtcReceiveControllerDecline( + {required RtcReceiveController that}); - Stream crateApiWebrtcRtcReceiveControllerListenError({required RtcReceiveController that}); + Stream crateApiWebrtcRtcReceiveControllerListenError( + {required RtcReceiveController that}); - Future> crateApiWebrtcRtcReceiveControllerListenFiles({required RtcReceiveController that}); + Future> crateApiWebrtcRtcReceiveControllerListenFiles( + {required RtcReceiveController that}); - Stream crateApiWebrtcRtcReceiveControllerListenReceiving({required RtcReceiveController that}); + Stream crateApiWebrtcRtcReceiveControllerListenReceiving( + {required RtcReceiveController that}); - Stream crateApiWebrtcRtcReceiveControllerListenStatus({required RtcReceiveController that}); + Stream crateApiWebrtcRtcReceiveControllerListenStatus( + {required RtcReceiveController that}); - Future crateApiWebrtcRtcReceiveControllerSendFileStatus({required RtcReceiveController that, required RTCSendFileResponse status}); + Future crateApiWebrtcRtcReceiveControllerSendFileStatus( + {required RtcReceiveController that, + required RTCSendFileResponse status}); - Future crateApiWebrtcRtcReceiveControllerSendPin({required RtcReceiveController that, required String pin}); + Future crateApiWebrtcRtcReceiveControllerSendPin( + {required RtcReceiveController that, required String pin}); - Future crateApiWebrtcRtcReceiveControllerSendSelection({required RtcReceiveController that, required Set selection}); + Future crateApiWebrtcRtcReceiveControllerSendSelection( + {required RtcReceiveController that, required Set selection}); - Stream crateApiWebrtcRtcSendControllerListenError({required RtcSendController that}); + Stream crateApiWebrtcRtcSendControllerListenError( + {required RtcSendController that}); - Future> crateApiWebrtcRtcSendControllerListenSelectedFiles({required RtcSendController that}); + Future> crateApiWebrtcRtcSendControllerListenSelectedFiles( + {required RtcSendController that}); - Stream crateApiWebrtcRtcSendControllerListenStatus({required RtcSendController that}); + Stream crateApiWebrtcRtcSendControllerListenStatus( + {required RtcSendController that}); - Future crateApiWebrtcRtcSendControllerSendFile({required RtcSendController that, required String fileId}); + Future crateApiWebrtcRtcSendControllerSendFile( + {required RtcSendController that, required String fileId}); - Future crateApiWebrtcRtcSendControllerSendPin({required RtcSendController that, required String pin}); + Future crateApiWebrtcRtcSendControllerSendPin( + {required RtcSendController that, required String pin}); Stream crateApiWebrtcConnect( - {required String uri, required ClientInfoWithoutId info, required FutureOr Function(LsSignalingConnection) onConnection}); + {required String uri, + required ProposingClientInfo info, + required String privateKey, + required FutureOr Function(LsSignalingConnection) onConnection}); Future crateApiLoggingEnableDebugLogging(); - Future crateApiCryptoVerifyCert({required String cert, required String publicKey}); + Future crateApiCryptoGenerateKeyPair(); - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LsSignalingConnection; + Future crateApiCryptoVerifyCert( + {required String cert, required String publicKey}); - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_LsSignalingConnection; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LsSignalingConnection; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LsSignalingConnectionPtr; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LsSignalingConnection; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcFileReceiver; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LsSignalingConnectionPtr; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcFileReceiver; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcFileReceiver; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcFileReceiverPtr; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcFileReceiver; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcFileSender; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcFileReceiverPtr; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcFileSender; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcFileSender; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcFileSenderPtr; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcFileSender; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcReceiveController; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcFileSenderPtr; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcReceiveController; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcReceiveController; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcReceiveControllerPtr; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcReceiveController; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcSendController; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcReceiveControllerPtr; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcSendController; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcSendController; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcSendControllerPtr; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcSendController; + + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcSendControllerPtr; } class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { @@ -185,27 +231,46 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + that, serializer); sse_encode_list_String(stunServers, serializer); sse_encode_box_autoadd_ws_server_sdp_message(offer, serializer); sse_encode_String(privateKey, serializer); - sse_encode_opt_box_autoadd_expecting_public_key(expectingPublicKey, serializer); + sse_encode_opt_box_autoadd_expecting_public_key( + expectingPublicKey, serializer); sse_encode_opt_box_autoadd_pin_config(pin, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 1, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 1, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController, + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController, decodeErrorData: sse_decode_AnyhowException, ), constMeta: kCrateApiWebrtcLsSignalingConnectionAcceptOfferConstMeta, - argValues: [that, stunServers, offer, privateKey, expectingPublicKey, pin], + argValues: [ + that, + stunServers, + offer, + privateKey, + expectingPublicKey, + pin + ], apiImpl: this, )); } - TaskConstMeta get kCrateApiWebrtcLsSignalingConnectionAcceptOfferConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcLsSignalingConnectionAcceptOfferConstMeta => + const TaskConstMeta( debugName: 'LsSignalingConnection_accept_offer', - argNames: ['that', 'stunServers', 'offer', 'privateKey', 'expectingPublicKey', 'pin'], + argNames: [ + 'that', + 'stunServers', + 'offer', + 'privateKey', + 'expectingPublicKey', + 'pin' + ], ); @override @@ -220,38 +285,63 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + that, serializer); sse_encode_list_String(stunServers, serializer); sse_encode_Uuid(target, serializer); sse_encode_String(privateKey, serializer); - sse_encode_opt_box_autoadd_expecting_public_key(expectingPublicKey, serializer); + sse_encode_opt_box_autoadd_expecting_public_key( + expectingPublicKey, serializer); sse_encode_opt_box_autoadd_pin_config(pin, serializer); sse_encode_list_file_dto(files, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 2, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 2, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController, + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController, decodeErrorData: sse_decode_AnyhowException, ), constMeta: kCrateApiWebrtcLsSignalingConnectionSendOfferConstMeta, - argValues: [that, stunServers, target, privateKey, expectingPublicKey, pin, files], + argValues: [ + that, + stunServers, + target, + privateKey, + expectingPublicKey, + pin, + files + ], apiImpl: this, )); } - TaskConstMeta get kCrateApiWebrtcLsSignalingConnectionSendOfferConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcLsSignalingConnectionSendOfferConstMeta => + const TaskConstMeta( debugName: 'LsSignalingConnection_send_offer', - argNames: ['that', 'stunServers', 'target', 'privateKey', 'expectingPublicKey', 'pin', 'files'], + argNames: [ + 'that', + 'stunServers', + 'target', + 'privateKey', + 'expectingPublicKey', + 'pin', + 'files' + ], ); @override - Future crateApiWebrtcLsSignalingConnectionUpdateInfo({required LsSignalingConnection that, required ClientInfoWithoutId info}) { + Future crateApiWebrtcLsSignalingConnectionUpdateInfo( + {required LsSignalingConnection that, + required ClientInfoWithoutId info}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + that, serializer); sse_encode_box_autoadd_client_info_without_id(info, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 3, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 3, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -263,18 +353,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcLsSignalingConnectionUpdateInfoConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcLsSignalingConnectionUpdateInfoConstMeta => + const TaskConstMeta( debugName: 'LsSignalingConnection_update_info', argNames: ['that', 'info'], ); @override - Future crateApiWebrtcRtcFileReceiverGetFileId({required RtcFileReceiver that}) { + Future crateApiWebrtcRtcFileReceiverGetFileId( + {required RtcFileReceiver that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 4, port: port_); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 4, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_String, @@ -286,20 +380,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcFileReceiverGetFileIdConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcFileReceiverGetFileIdConstMeta => + const TaskConstMeta( debugName: 'RtcFileReceiver_get_file_id', argNames: ['that'], ); @override - Stream crateApiWebrtcRtcFileReceiverReceive({required RtcFileReceiver that}) { + Stream crateApiWebrtcRtcFileReceiverReceive( + {required RtcFileReceiver that}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + that, serializer); sse_encode_StreamSink_list_prim_u_8_strict_Sse(sink, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 5, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 5, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -312,19 +410,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return sink.stream; } - TaskConstMeta get kCrateApiWebrtcRtcFileReceiverReceiveConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcFileReceiverReceiveConstMeta => + const TaskConstMeta( debugName: 'RtcFileReceiver_receive', argNames: ['that', 'sink'], ); @override - Future crateApiWebrtcRtcFileSenderSend({required RtcFileSender that, required List data}) { + Future crateApiWebrtcRtcFileSenderSend( + {required RtcFileSender that, required List data}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + that, serializer); sse_encode_list_prim_u_8_loose(data, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 6, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 6, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -336,18 +438,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcFileSenderSendConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcFileSenderSendConstMeta => + const TaskConstMeta( debugName: 'RtcFileSender_send', argNames: ['that', 'data'], ); @override - Future crateApiWebrtcRtcReceiveControllerDecline({required RtcReceiveController that}) { + Future crateApiWebrtcRtcReceiveControllerDecline( + {required RtcReceiveController that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 7, port: port_); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 7, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -359,20 +465,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerDeclineConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerDeclineConstMeta => + const TaskConstMeta( debugName: 'RtcReceiveController_decline', argNames: ['that'], ); @override - Stream crateApiWebrtcRtcReceiveControllerListenError({required RtcReceiveController that}) { + Stream crateApiWebrtcRtcReceiveControllerListenError( + {required RtcReceiveController that}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); sse_encode_StreamSink_rtc_file_error_Sse(sink, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 8, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 8, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -385,18 +495,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return sink.stream; } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenErrorConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenErrorConstMeta => + const TaskConstMeta( debugName: 'RtcReceiveController_listen_error', argNames: ['that', 'sink'], ); @override - Future> crateApiWebrtcRtcReceiveControllerListenFiles({required RtcReceiveController that}) { + Future> crateApiWebrtcRtcReceiveControllerListenFiles( + {required RtcReceiveController that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 9, port: port_); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 9, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_list_file_dto, @@ -408,20 +522,25 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenFilesConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenFilesConstMeta => + const TaskConstMeta( debugName: 'RtcReceiveController_listen_files', argNames: ['that'], ); @override - Stream crateApiWebrtcRtcReceiveControllerListenReceiving({required RtcReceiveController that}) { + Stream crateApiWebrtcRtcReceiveControllerListenReceiving( + {required RtcReceiveController that}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); - sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(sink, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 10, port: port_); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); + sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + sink, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 10, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -434,20 +553,25 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return sink.stream; } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenReceivingConstMeta => const TaskConstMeta( - debugName: 'RtcReceiveController_listen_receiving', - argNames: ['that', 'sink'], - ); + TaskConstMeta + get kCrateApiWebrtcRtcReceiveControllerListenReceivingConstMeta => + const TaskConstMeta( + debugName: 'RtcReceiveController_listen_receiving', + argNames: ['that', 'sink'], + ); @override - Stream crateApiWebrtcRtcReceiveControllerListenStatus({required RtcReceiveController that}) { + Stream crateApiWebrtcRtcReceiveControllerListenStatus( + {required RtcReceiveController that}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); sse_encode_StreamSink_rtc_status_Sse(sink, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 11, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 11, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -460,19 +584,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return sink.stream; } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenStatusConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerListenStatusConstMeta => + const TaskConstMeta( debugName: 'RtcReceiveController_listen_status', argNames: ['that', 'sink'], ); @override - Future crateApiWebrtcRtcReceiveControllerSendFileStatus({required RtcReceiveController that, required RTCSendFileResponse status}) { + Future crateApiWebrtcRtcReceiveControllerSendFileStatus( + {required RtcReceiveController that, + required RTCSendFileResponse status}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); sse_encode_box_autoadd_rtc_send_file_response(status, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 12, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 12, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -484,19 +613,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerSendFileStatusConstMeta => const TaskConstMeta( - debugName: 'RtcReceiveController_send_file_status', - argNames: ['that', 'status'], - ); + TaskConstMeta + get kCrateApiWebrtcRtcReceiveControllerSendFileStatusConstMeta => + const TaskConstMeta( + debugName: 'RtcReceiveController_send_file_status', + argNames: ['that', 'status'], + ); @override - Future crateApiWebrtcRtcReceiveControllerSendPin({required RtcReceiveController that, required String pin}) { + Future crateApiWebrtcRtcReceiveControllerSendPin( + {required RtcReceiveController that, required String pin}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); sse_encode_String(pin, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 13, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 13, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -508,19 +642,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerSendPinConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerSendPinConstMeta => + const TaskConstMeta( debugName: 'RtcReceiveController_send_pin', argNames: ['that', 'pin'], ); @override - Future crateApiWebrtcRtcReceiveControllerSendSelection({required RtcReceiveController that, required Set selection}) { + Future crateApiWebrtcRtcReceiveControllerSendSelection( + {required RtcReceiveController that, required Set selection}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(that, serializer); - sse_encode_Set_String(selection, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 14, port: port_); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + that, serializer); + sse_encode_Set_String_None(selection, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 14, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -532,20 +670,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerSendSelectionConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcReceiveControllerSendSelectionConstMeta => + const TaskConstMeta( debugName: 'RtcReceiveController_send_selection', argNames: ['that', 'selection'], ); @override - Stream crateApiWebrtcRtcSendControllerListenError({required RtcSendController that}) { + Stream crateApiWebrtcRtcSendControllerListenError( + {required RtcSendController that}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(that, serializer); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + that, serializer); sse_encode_StreamSink_rtc_file_error_Sse(sink, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 15, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 15, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -558,21 +700,25 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return sink.stream; } - TaskConstMeta get kCrateApiWebrtcRtcSendControllerListenErrorConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcSendControllerListenErrorConstMeta => + const TaskConstMeta( debugName: 'RtcSendController_listen_error', argNames: ['that', 'sink'], ); @override - Future> crateApiWebrtcRtcSendControllerListenSelectedFiles({required RtcSendController that}) { + Future> crateApiWebrtcRtcSendControllerListenSelectedFiles( + {required RtcSendController that}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(that, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 16, port: port_); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + that, serializer); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 16, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_Set_String, + decodeSuccessData: sse_decode_Set_String_None, decodeErrorData: sse_decode_AnyhowException, ), constMeta: kCrateApiWebrtcRtcSendControllerListenSelectedFilesConstMeta, @@ -581,20 +727,25 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcSendControllerListenSelectedFilesConstMeta => const TaskConstMeta( - debugName: 'RtcSendController_listen_selected_files', - argNames: ['that'], - ); + TaskConstMeta + get kCrateApiWebrtcRtcSendControllerListenSelectedFilesConstMeta => + const TaskConstMeta( + debugName: 'RtcSendController_listen_selected_files', + argNames: ['that'], + ); @override - Stream crateApiWebrtcRtcSendControllerListenStatus({required RtcSendController that}) { + Stream crateApiWebrtcRtcSendControllerListenStatus( + {required RtcSendController that}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(that, serializer); + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + that, serializer); sse_encode_StreamSink_rtc_status_Sse(sink, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 17, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 17, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -607,22 +758,27 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return sink.stream; } - TaskConstMeta get kCrateApiWebrtcRtcSendControllerListenStatusConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcSendControllerListenStatusConstMeta => + const TaskConstMeta( debugName: 'RtcSendController_listen_status', argNames: ['that', 'sink'], ); @override - Future crateApiWebrtcRtcSendControllerSendFile({required RtcSendController that, required String fileId}) { + Future crateApiWebrtcRtcSendControllerSendFile( + {required RtcSendController that, required String fileId}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + that, serializer); sse_encode_String(fileId, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 18, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 18, port: port_); }, codec: SseCodec( - decodeSuccessData: sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender, + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender, decodeErrorData: sse_decode_AnyhowException, ), constMeta: kCrateApiWebrtcRtcSendControllerSendFileConstMeta, @@ -631,19 +787,23 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcSendControllerSendFileConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcSendControllerSendFileConstMeta => + const TaskConstMeta( debugName: 'RtcSendController_send_file', argNames: ['that', 'fileId'], ); @override - Future crateApiWebrtcRtcSendControllerSendPin({required RtcSendController that, required String pin}) { + Future crateApiWebrtcRtcSendControllerSendPin( + {required RtcSendController that, required String pin}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(that, serializer); + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + that, serializer); sse_encode_String(pin, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 19, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 19, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -655,31 +815,37 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiWebrtcRtcSendControllerSendPinConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiWebrtcRtcSendControllerSendPinConstMeta => + const TaskConstMeta( debugName: 'RtcSendController_send_pin', argNames: ['that', 'pin'], ); @override Stream crateApiWebrtcConnect( - {required String uri, required ClientInfoWithoutId info, required FutureOr Function(LsSignalingConnection) onConnection}) { + {required String uri, + required ProposingClientInfo info, + required String privateKey, + required FutureOr Function(LsSignalingConnection) onConnection}) { final sink = RustStreamSink(); unawaited(handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_StreamSink_ws_server_message_Sse(sink, serializer); sse_encode_String(uri, serializer); - sse_encode_box_autoadd_client_info_without_id(info, serializer); + sse_encode_box_autoadd_proposing_client_info(info, serializer); + sse_encode_String(privateKey, serializer); sse_encode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException( onConnection, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 20, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 20, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, decodeErrorData: null, ), constMeta: kCrateApiWebrtcConnectConstMeta, - argValues: [sink, uri, info, onConnection], + argValues: [sink, uri, info, privateKey, onConnection], apiImpl: this, ))); return sink.stream; @@ -687,7 +853,7 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { TaskConstMeta get kCrateApiWebrtcConnectConstMeta => const TaskConstMeta( debugName: 'connect', - argNames: ['sink', 'uri', 'info', 'onConnection'], + argNames: ['sink', 'uri', 'info', 'privateKey', 'onConnection'], ); @override @@ -695,7 +861,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 21, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 21, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -707,19 +874,46 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { )); } - TaskConstMeta get kCrateApiLoggingEnableDebugLoggingConstMeta => const TaskConstMeta( + TaskConstMeta get kCrateApiLoggingEnableDebugLoggingConstMeta => + const TaskConstMeta( debugName: 'enable_debug_logging', argNames: [], ); @override - Future crateApiCryptoVerifyCert({required String cert, required String publicKey}) { + Future crateApiCryptoGenerateKeyPair() { + return handler.executeNormal(NormalTask( + callFfi: (port_) { + final serializer = SseSerializer(generalizedFrbRustBinding); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 22, port: port_); + }, + codec: SseCodec( + decodeSuccessData: sse_decode_key_pair, + decodeErrorData: sse_decode_AnyhowException, + ), + constMeta: kCrateApiCryptoGenerateKeyPairConstMeta, + argValues: [], + apiImpl: this, + )); + } + + TaskConstMeta get kCrateApiCryptoGenerateKeyPairConstMeta => + const TaskConstMeta( + debugName: 'generate_key_pair', + argNames: [], + ); + + @override + Future crateApiCryptoVerifyCert( + {required String cert, required String publicKey}) { return handler.executeNormal(NormalTask( callFfi: (port_) { final serializer = SseSerializer(generalizedFrbRustBinding); sse_encode_String(cert, serializer); sse_encode_String(publicKey, serializer); - pdeCallFfi(generalizedFrbRustBinding, serializer, funcId: 22, port: port_); + pdeCallFfi(generalizedFrbRustBinding, serializer, + funcId: 23, port: port_); }, codec: SseCodec( decodeSuccessData: sse_decode_unit, @@ -740,7 +934,9 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { encode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException( FutureOr Function(LsSignalingConnection) raw) { return (callId, rawArg0) async { - final arg0 = dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(rawArg0); + final arg0 = + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + rawArg0); Box? rawOutput; Box? rawError; @@ -761,39 +957,53 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } final output = serializer.intoRaw(); - generalizedFrbRustBinding.dartFnDeliverOutput(callId: callId, ptr: output.ptr, rustVecLen: output.rustVecLen, dataLen: output.dataLen); + generalizedFrbRustBinding.dartFnDeliverOutput( + callId: callId, + ptr: output.ptr, + rustVecLen: output.rustVecLen, + dataLen: output.dataLen); }; } - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_LsSignalingConnection => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_LsSignalingConnection => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_LsSignalingConnection => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_LsSignalingConnection => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcFileReceiver => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcFileReceiver => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcFileReceiver => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcFileReceiver => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcFileSender => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcFileSender => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcFileSender => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcFileSender => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcReceiveController => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcReceiveController => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcReceiveController => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcReceiveController => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController; - RustArcIncrementStrongCountFnType get rust_arc_increment_strong_count_RtcSendController => - wire.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController; + RustArcIncrementStrongCountFnType + get rust_arc_increment_strong_count_RtcSendController => wire + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController; - RustArcDecrementStrongCountFnType get rust_arc_decrement_strong_count_RtcSendController => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController; + RustArcDecrementStrongCountFnType + get rust_arc_decrement_strong_count_RtcSendController => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController; @protected AnyhowException dco_decode_AnyhowException(dynamic raw) { @@ -802,67 +1012,89 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LsSignalingConnection dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw) { + LsSignalingConnection + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return LsSignalingConnectionImpl.frbInternalDcoDecode(raw as List); } @protected - RtcFileReceiver dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw) { + RtcFileReceiver + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcFileReceiverImpl.frbInternalDcoDecode(raw as List); } @protected - RtcFileSender dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw) { + RtcFileSender + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcFileSenderImpl.frbInternalDcoDecode(raw as List); } @protected - RtcReceiveController dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw) { + RtcReceiveController + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcReceiveControllerImpl.frbInternalDcoDecode(raw as List); } @protected - RtcSendController dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw) { + RtcSendController + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcSendControllerImpl.frbInternalDcoDecode(raw as List); } @protected - RtcSendController dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw) { + RtcSendController + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcSendControllerImpl.frbInternalDcoDecode(raw as List); } @protected - LsSignalingConnection dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw) { + LsSignalingConnection + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return LsSignalingConnectionImpl.frbInternalDcoDecode(raw as List); } @protected - RtcFileReceiver dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw) { + RtcFileReceiver + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcFileReceiverImpl.frbInternalDcoDecode(raw as List); } @protected - RtcFileSender dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw) { + RtcFileSender + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcFileSenderImpl.frbInternalDcoDecode(raw as List); } @protected - RtcReceiveController dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw) { + RtcReceiveController + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcReceiveControllerImpl.frbInternalDcoDecode(raw as List); } @protected - RtcSendController dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw) { + RtcSendController + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcSendControllerImpl.frbInternalDcoDecode(raw as List); } @@ -882,56 +1114,69 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LsSignalingConnection dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw) { + LsSignalingConnection + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return LsSignalingConnectionImpl.frbInternalDcoDecode(raw as List); } @protected - RtcFileReceiver dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw) { + RtcFileReceiver + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcFileReceiverImpl.frbInternalDcoDecode(raw as List); } @protected - RtcFileSender dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw) { + RtcFileSender + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcFileSenderImpl.frbInternalDcoDecode(raw as List); } @protected - RtcReceiveController dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw) { + RtcReceiveController + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcReceiveControllerImpl.frbInternalDcoDecode(raw as List); } @protected - RtcSendController dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw) { + RtcSendController + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return RtcSendControllerImpl.frbInternalDcoDecode(raw as List); } @protected - Set dco_decode_Set_String(dynamic raw) { + Set dco_decode_Set_String_None(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return Set.from(dco_decode_list_String(raw)); } @protected - RustStreamSink dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink + dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + throw UnimplementedError(); + } + + @protected + RustStreamSink dco_decode_StreamSink_list_prim_u_8_strict_Sse( dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError(); } @protected - RustStreamSink dco_decode_StreamSink_list_prim_u_8_strict_Sse(dynamic raw) { - // Codec=Dco (DartCObject based), see doc to use other codecs - throw UnimplementedError(); - } - - @protected - RustStreamSink dco_decode_StreamSink_rtc_file_error_Sse(dynamic raw) { + RustStreamSink dco_decode_StreamSink_rtc_file_error_Sse( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError(); } @@ -943,7 +1188,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - RustStreamSink dco_decode_StreamSink_ws_server_message_Sse(dynamic raw) { + RustStreamSink dco_decode_StreamSink_ws_server_message_Sse( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs throw UnimplementedError(); } @@ -973,7 +1219,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - ClientInfoWithoutId dco_decode_box_autoadd_client_info_without_id(dynamic raw) { + ClientInfoWithoutId dco_decode_box_autoadd_client_info_without_id( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return dco_decode_client_info_without_id(raw); } @@ -1003,7 +1250,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - RTCSendFileResponse dco_decode_box_autoadd_rtc_send_file_response(dynamic raw) { + ProposingClientInfo dco_decode_box_autoadd_proposing_client_info( + dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + return dco_decode_proposing_client_info(raw); + } + + @protected + RTCSendFileResponse dco_decode_box_autoadd_rtc_send_file_response( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs return dco_decode_rtc_send_file_response(raw); } @@ -1018,7 +1273,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ClientInfo dco_decode_client_info(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 6) throw Exception('unexpected arr length: expect 6 but see ${arr.length}'); + if (arr.length != 6) + throw Exception('unexpected arr length: expect 6 but see ${arr.length}'); return ClientInfo( id: dco_decode_Uuid(arr[0]), alias: dco_decode_String(arr[1]), @@ -1033,7 +1289,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ClientInfoWithoutId dco_decode_client_info_without_id(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 5) throw Exception('unexpected arr length: expect 5 but see ${arr.length}'); + if (arr.length != 5) + throw Exception('unexpected arr length: expect 5 but see ${arr.length}'); return ClientInfoWithoutId( alias: dco_decode_String(arr[0]), version: dco_decode_String(arr[1]), @@ -1053,7 +1310,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { ExpectingPublicKey dco_decode_expecting_public_key(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return ExpectingPublicKey( publicKey: dco_decode_String(arr[0]), kind: dco_decode_String(arr[1]), @@ -1064,7 +1322,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { FileDto dco_decode_file_dto(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 7) throw Exception('unexpected arr length: expect 7 but see ${arr.length}'); + if (arr.length != 7) + throw Exception('unexpected arr length: expect 7 but see ${arr.length}'); return FileDto( id: dco_decode_String(arr[0]), fileName: dco_decode_String(arr[1]), @@ -1080,7 +1339,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { FileMetadata dco_decode_file_metadata(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return FileMetadata( modified: dco_decode_opt_String(arr[0]), accessed: dco_decode_opt_String(arr[1]), @@ -1099,6 +1359,18 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return dcoDecodeI64(raw); } + @protected + KeyPair dco_decode_key_pair(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + return KeyPair( + privateKey: dco_decode_String(arr[0]), + publicKey: dco_decode_String(arr[1]), + ); + } + @protected List dco_decode_list_String(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs @@ -1142,9 +1414,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - ExpectingPublicKey? dco_decode_opt_box_autoadd_expecting_public_key(dynamic raw) { + ExpectingPublicKey? dco_decode_opt_box_autoadd_expecting_public_key( + dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs - return raw == null ? null : dco_decode_box_autoadd_expecting_public_key(raw); + return raw == null + ? null + : dco_decode_box_autoadd_expecting_public_key(raw); } @protected @@ -1163,18 +1438,34 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { PinConfig dco_decode_pin_config(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return PinConfig( pin: dco_decode_String(arr[0]), maxTries: dco_decode_u_8(arr[1]), ); } + @protected + ProposingClientInfo dco_decode_proposing_client_info(dynamic raw) { + // Codec=Dco (DartCObject based), see doc to use other codecs + final arr = raw as List; + if (arr.length != 4) + throw Exception('unexpected arr length: expect 4 but see ${arr.length}'); + return ProposingClientInfo( + alias: dco_decode_String(arr[0]), + version: dco_decode_String(arr[1]), + deviceModel: dco_decode_opt_String(arr[2]), + deviceType: dco_decode_opt_box_autoadd_device_type(arr[3]), + ); + } + @protected RTCFileError dco_decode_rtc_file_error(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 2) throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); + if (arr.length != 2) + throw Exception('unexpected arr length: expect 2 but see ${arr.length}'); return RTCFileError( fileId: dco_decode_String(arr[0]), error: dco_decode_String(arr[1]), @@ -1185,7 +1476,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { RTCSendFileResponse dco_decode_rtc_send_file_response(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 3) throw Exception('unexpected arr length: expect 3 but see ${arr.length}'); + if (arr.length != 3) + throw Exception('unexpected arr length: expect 3 but see ${arr.length}'); return RTCSendFileResponse( id: dco_decode_String(arr[0]), success: dco_decode_bool(arr[1]), @@ -1292,7 +1584,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { WsServerSdpMessage dco_decode_ws_server_sdp_message(dynamic raw) { // Codec=Dco (DartCObject based), see doc to use other codecs final arr = raw as List; - if (arr.length != 3) throw Exception('unexpected arr length: expect 3 but see ${arr.length}'); + if (arr.length != 3) + throw Exception('unexpected arr length: expect 3 but see ${arr.length}'); return WsServerSdpMessage( peer: dco_decode_client_info(arr[0]), sessionId: dco_decode_String(arr[1]), @@ -1308,76 +1601,102 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LsSignalingConnection sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - SseDeserializer deserializer) { + LsSignalingConnection + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LsSignalingConnectionImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return LsSignalingConnectionImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcFileReceiver sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer) { + RtcFileReceiver + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcFileReceiverImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcFileReceiverImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcFileSender sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer) { + RtcFileSender + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcFileSenderImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcFileSenderImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcReceiveController sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - SseDeserializer deserializer) { + RtcReceiveController + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcReceiveControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcReceiveControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcSendController sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer) { + RtcSendController + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcSendControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcSendControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcSendController sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer) { + RtcSendController + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcSendControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcSendControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - LsSignalingConnection sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - SseDeserializer deserializer) { + LsSignalingConnection + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LsSignalingConnectionImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return LsSignalingConnectionImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcFileReceiver sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer) { + RtcFileReceiver + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcFileReceiverImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcFileReceiverImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcFileSender sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer) { + RtcFileSender + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcFileSenderImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcFileSenderImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcReceiveController sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - SseDeserializer deserializer) { + RtcReceiveController + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcReceiveControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcReceiveControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcSendController sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer) { + RtcSendController + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcSendControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcSendControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected @@ -1388,69 +1707,89 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - LsSignalingConnection sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(SseDeserializer deserializer) { + LsSignalingConnection + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return LsSignalingConnectionImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return LsSignalingConnectionImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcFileReceiver sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer) { + RtcFileReceiver + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcFileReceiverImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcFileReceiverImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcFileSender sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer) { + RtcFileSender + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcFileSenderImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcFileSenderImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcReceiveController sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(SseDeserializer deserializer) { + RtcReceiveController + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcReceiveControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcReceiveControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - RtcSendController sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(SseDeserializer deserializer) { + RtcSendController + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs - return RtcSendControllerImpl.frbInternalSseDecode(sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); + return RtcSendControllerImpl.frbInternalSseDecode( + sse_decode_usize(deserializer), sse_decode_i_32(deserializer)); } @protected - Set sse_decode_Set_String(SseDeserializer deserializer) { + Set sse_decode_Set_String_None(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var inner = sse_decode_list_String(deserializer); return Set.from(inner); } @protected - RustStreamSink sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink + sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + throw UnimplementedError('Unreachable ()'); + } + + @protected + RustStreamSink sse_decode_StreamSink_list_prim_u_8_strict_Sse( SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs throw UnimplementedError('Unreachable ()'); } @protected - RustStreamSink sse_decode_StreamSink_list_prim_u_8_strict_Sse(SseDeserializer deserializer) { + RustStreamSink sse_decode_StreamSink_rtc_file_error_Sse( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs throw UnimplementedError('Unreachable ()'); } @protected - RustStreamSink sse_decode_StreamSink_rtc_file_error_Sse(SseDeserializer deserializer) { + RustStreamSink sse_decode_StreamSink_rtc_status_Sse( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs throw UnimplementedError('Unreachable ()'); } @protected - RustStreamSink sse_decode_StreamSink_rtc_status_Sse(SseDeserializer deserializer) { - // Codec=Sse (Serialization based), see doc to use other codecs - throw UnimplementedError('Unreachable ()'); - } - - @protected - RustStreamSink sse_decode_StreamSink_ws_server_message_Sse(SseDeserializer deserializer) { + RustStreamSink sse_decode_StreamSink_ws_server_message_Sse( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs throw UnimplementedError('Unreachable ()'); } @@ -1482,7 +1821,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - ClientInfoWithoutId sse_decode_box_autoadd_client_info_without_id(SseDeserializer deserializer) { + ClientInfoWithoutId sse_decode_box_autoadd_client_info_without_id( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_client_info_without_id(deserializer)); } @@ -1494,13 +1834,15 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - ExpectingPublicKey sse_decode_box_autoadd_expecting_public_key(SseDeserializer deserializer) { + ExpectingPublicKey sse_decode_box_autoadd_expecting_public_key( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_expecting_public_key(deserializer)); } @protected - FileMetadata sse_decode_box_autoadd_file_metadata(SseDeserializer deserializer) { + FileMetadata sse_decode_box_autoadd_file_metadata( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_file_metadata(deserializer)); } @@ -1512,13 +1854,22 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - RTCSendFileResponse sse_decode_box_autoadd_rtc_send_file_response(SseDeserializer deserializer) { + ProposingClientInfo sse_decode_box_autoadd_proposing_client_info( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + return (sse_decode_proposing_client_info(deserializer)); + } + + @protected + RTCSendFileResponse sse_decode_box_autoadd_rtc_send_file_response( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_rtc_send_file_response(deserializer)); } @protected - WsServerSdpMessage sse_decode_box_autoadd_ws_server_sdp_message(SseDeserializer deserializer) { + WsServerSdpMessage sse_decode_box_autoadd_ws_server_sdp_message( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs return (sse_decode_ws_server_sdp_message(deserializer)); } @@ -1532,18 +1883,30 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var var_deviceModel = sse_decode_opt_String(deserializer); var var_deviceType = sse_decode_opt_box_autoadd_device_type(deserializer); var var_token = sse_decode_String(deserializer); - return ClientInfo(id: var_id, alias: var_alias, version: var_version, deviceModel: var_deviceModel, deviceType: var_deviceType, token: var_token); + return ClientInfo( + id: var_id, + alias: var_alias, + version: var_version, + deviceModel: var_deviceModel, + deviceType: var_deviceType, + token: var_token); } @protected - ClientInfoWithoutId sse_decode_client_info_without_id(SseDeserializer deserializer) { + ClientInfoWithoutId sse_decode_client_info_without_id( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_alias = sse_decode_String(deserializer); var var_version = sse_decode_String(deserializer); var var_deviceModel = sse_decode_opt_String(deserializer); var var_deviceType = sse_decode_opt_box_autoadd_device_type(deserializer); var var_token = sse_decode_String(deserializer); - return ClientInfoWithoutId(alias: var_alias, version: var_version, deviceModel: var_deviceModel, deviceType: var_deviceType, token: var_token); + return ClientInfoWithoutId( + alias: var_alias, + version: var_version, + deviceModel: var_deviceModel, + deviceType: var_deviceType, + token: var_token); } @protected @@ -1554,7 +1917,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - ExpectingPublicKey sse_decode_expecting_public_key(SseDeserializer deserializer) { + ExpectingPublicKey sse_decode_expecting_public_key( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_publicKey = sse_decode_String(deserializer); var var_kind = sse_decode_String(deserializer); @@ -1572,7 +1936,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var var_preview = sse_decode_opt_String(deserializer); var var_metadata = sse_decode_opt_box_autoadd_file_metadata(deserializer); return FileDto( - id: var_id, fileName: var_fileName, size: var_size, fileType: var_fileType, sha256: var_sha256, preview: var_preview, metadata: var_metadata); + id: var_id, + fileName: var_fileName, + size: var_size, + fileType: var_fileType, + sha256: var_sha256, + preview: var_preview, + metadata: var_metadata); } @protected @@ -1595,6 +1965,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return deserializer.buffer.getPlatformInt64(); } + @protected + KeyPair sse_decode_key_pair(SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_privateKey = sse_decode_String(deserializer); + var var_publicKey = sse_decode_String(deserializer); + return KeyPair(privateKey: var_privateKey, publicKey: var_publicKey); + } + @protected List sse_decode_list_String(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1657,7 +2035,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - DeviceType? sse_decode_opt_box_autoadd_device_type(SseDeserializer deserializer) { + DeviceType? sse_decode_opt_box_autoadd_device_type( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -1668,7 +2047,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - ExpectingPublicKey? sse_decode_opt_box_autoadd_expecting_public_key(SseDeserializer deserializer) { + ExpectingPublicKey? sse_decode_opt_box_autoadd_expecting_public_key( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -1679,7 +2059,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - FileMetadata? sse_decode_opt_box_autoadd_file_metadata(SseDeserializer deserializer) { + FileMetadata? sse_decode_opt_box_autoadd_file_metadata( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -1690,7 +2071,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - PinConfig? sse_decode_opt_box_autoadd_pin_config(SseDeserializer deserializer) { + PinConfig? sse_decode_opt_box_autoadd_pin_config( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs if (sse_decode_bool(deserializer)) { @@ -1708,6 +2090,21 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { return PinConfig(pin: var_pin, maxTries: var_maxTries); } + @protected + ProposingClientInfo sse_decode_proposing_client_info( + SseDeserializer deserializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + var var_alias = sse_decode_String(deserializer); + var var_version = sse_decode_String(deserializer); + var var_deviceModel = sse_decode_opt_String(deserializer); + var var_deviceType = sse_decode_opt_box_autoadd_device_type(deserializer); + return ProposingClientInfo( + alias: var_alias, + version: var_version, + deviceModel: var_deviceModel, + deviceType: var_deviceType); + } + @protected RTCFileError sse_decode_rtc_file_error(SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -1717,12 +2114,14 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - RTCSendFileResponse sse_decode_rtc_send_file_response(SseDeserializer deserializer) { + RTCSendFileResponse sse_decode_rtc_send_file_response( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_id = sse_decode_String(deserializer); var var_success = sse_decode_bool(deserializer); var var_error = sse_decode_opt_String(deserializer); - return RTCSendFileResponse(id: var_id, success: var_success, error: var_error); + return RTCSendFileResponse( + id: var_id, success: var_success, error: var_error); } @protected @@ -1802,10 +2201,12 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { var var_peerId = sse_decode_Uuid(deserializer); return WsServerMessage_Left(peerId: var_peerId); case 4: - var var_field0 = sse_decode_box_autoadd_ws_server_sdp_message(deserializer); + var var_field0 = + sse_decode_box_autoadd_ws_server_sdp_message(deserializer); return WsServerMessage_Offer(var_field0); case 5: - var var_field0 = sse_decode_box_autoadd_ws_server_sdp_message(deserializer); + var var_field0 = + sse_decode_box_autoadd_ws_server_sdp_message(deserializer); return WsServerMessage_Answer(var_field0); case 6: var var_code = sse_decode_u_16(deserializer); @@ -1816,100 +2217,138 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - WsServerSdpMessage sse_decode_ws_server_sdp_message(SseDeserializer deserializer) { + WsServerSdpMessage sse_decode_ws_server_sdp_message( + SseDeserializer deserializer) { // Codec=Sse (Serialization based), see doc to use other codecs var var_peer = sse_decode_client_info(deserializer); var var_sessionId = sse_decode_String(deserializer); var var_sdp = sse_decode_String(deserializer); - return WsServerSdpMessage(peer: var_peer, sessionId: var_sessionId, sdp: var_sdp); + return WsServerSdpMessage( + peer: var_peer, sessionId: var_sessionId, sdp: var_sdp); } @protected - void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer) { + void sse_encode_AnyhowException( + AnyhowException self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String(self.message, serializer); } @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer) { + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as LsSignalingConnectionImpl).frbInternalSseEncode(move: true), serializer); + sse_encode_usize( + (self as LsSignalingConnectionImpl).frbInternalSseEncode(move: true), + serializer); } @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( - RtcFileReceiver self, SseSerializer serializer) { + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcFileReceiverImpl).frbInternalSseEncode(move: true), serializer); + sse_encode_usize( + (self as RtcFileReceiverImpl).frbInternalSseEncode(move: true), + serializer); } @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( - RtcFileSender self, SseSerializer serializer) { + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcFileSenderImpl).frbInternalSseEncode(move: true), serializer); + sse_encode_usize( + (self as RtcFileSenderImpl).frbInternalSseEncode(move: true), + serializer); } @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer) { + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcReceiveControllerImpl).frbInternalSseEncode(move: true), serializer); + sse_encode_usize( + (self as RtcReceiveControllerImpl).frbInternalSseEncode(move: true), + serializer); } @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer) { + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcSendControllerImpl).frbInternalSseEncode(move: true), serializer); + sse_encode_usize( + (self as RtcSendControllerImpl).frbInternalSseEncode(move: true), + serializer); } @protected - void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer) { + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcSendControllerImpl).frbInternalSseEncode(move: false), serializer); + sse_encode_usize( + (self as RtcSendControllerImpl).frbInternalSseEncode(move: false), + serializer); } @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer) { + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as LsSignalingConnectionImpl).frbInternalSseEncode(move: false), serializer); + sse_encode_usize( + (self as LsSignalingConnectionImpl).frbInternalSseEncode(move: false), + serializer); } @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( - RtcFileReceiver self, SseSerializer serializer) { + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcFileReceiverImpl).frbInternalSseEncode(move: false), serializer); + sse_encode_usize( + (self as RtcFileReceiverImpl).frbInternalSseEncode(move: false), + serializer); } @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(RtcFileSender self, SseSerializer serializer) { + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcFileSenderImpl).frbInternalSseEncode(move: false), serializer); + sse_encode_usize( + (self as RtcFileSenderImpl).frbInternalSseEncode(move: false), + serializer); } @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer) { + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcReceiveControllerImpl).frbInternalSseEncode(move: false), serializer); + sse_encode_usize( + (self as RtcReceiveControllerImpl).frbInternalSseEncode(move: false), + serializer); } @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer) { + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcSendControllerImpl).frbInternalSseEncode(move: false), serializer); + sse_encode_usize( + (self as RtcSendControllerImpl).frbInternalSseEncode(move: false), + serializer); } @protected void sse_encode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException( - FutureOr Function(LsSignalingConnection) self, SseSerializer serializer) { + FutureOr Function(LsSignalingConnection) self, + SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_DartOpaque( encode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException( @@ -1921,62 +2360,85 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { void sse_encode_DartOpaque(Object self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_isize( - PlatformPointerUtil.ptrToPlatformInt64(encodeDartOpaque(self, portManager.dartHandlerPort, generalizedFrbRustBinding)), serializer); + PlatformPointerUtil.ptrToPlatformInt64(encodeDartOpaque( + self, portManager.dartHandlerPort, generalizedFrbRustBinding)), + serializer); } @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer) { + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as LsSignalingConnectionImpl).frbInternalSseEncode(move: null), serializer); + sse_encode_usize( + (self as LsSignalingConnectionImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(RtcFileReceiver self, SseSerializer serializer) { + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcFileReceiverImpl).frbInternalSseEncode(move: null), serializer); + sse_encode_usize( + (self as RtcFileReceiverImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(RtcFileSender self, SseSerializer serializer) { + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcFileSenderImpl).frbInternalSseEncode(move: null), serializer); + sse_encode_usize( + (self as RtcFileSenderImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer) { + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcReceiveControllerImpl).frbInternalSseEncode(move: null), serializer); + sse_encode_usize( + (self as RtcReceiveControllerImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(RtcSendController self, SseSerializer serializer) { + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs - sse_encode_usize((self as RtcSendControllerImpl).frbInternalSseEncode(move: null), serializer); + sse_encode_usize( + (self as RtcSendControllerImpl).frbInternalSseEncode(move: null), + serializer); } @protected - void sse_encode_Set_String(Set self, SseSerializer serializer) { + void sse_encode_Set_String_None(Set self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_list_String(self.toList(), serializer); } @protected - void sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( - RustStreamSink self, SseSerializer serializer) { + void + sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String( self.setupAndSerialize( codec: SseCodec( - decodeSuccessData: sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver, + decodeSuccessData: + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver, decodeErrorData: sse_decode_AnyhowException, )), serializer); } @protected - void sse_encode_StreamSink_list_prim_u_8_strict_Sse(RustStreamSink self, SseSerializer serializer) { + void sse_encode_StreamSink_list_prim_u_8_strict_Sse( + RustStreamSink self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String( self.setupAndSerialize( @@ -1988,7 +2450,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_StreamSink_rtc_file_error_Sse(RustStreamSink self, SseSerializer serializer) { + void sse_encode_StreamSink_rtc_file_error_Sse( + RustStreamSink self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String( self.setupAndSerialize( @@ -2000,7 +2463,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_StreamSink_rtc_status_Sse(RustStreamSink self, SseSerializer serializer) { + void sse_encode_StreamSink_rtc_status_Sse( + RustStreamSink self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String( self.setupAndSerialize( @@ -2012,7 +2476,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_StreamSink_ws_server_message_Sse(RustStreamSink self, SseSerializer serializer) { + void sse_encode_StreamSink_ws_server_message_Sse( + RustStreamSink self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String( self.setupAndSerialize( @@ -2042,49 +2507,64 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_box_autoadd_client_info(ClientInfo self, SseSerializer serializer) { + void sse_encode_box_autoadd_client_info( + ClientInfo self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_client_info(self, serializer); } @protected - void sse_encode_box_autoadd_client_info_without_id(ClientInfoWithoutId self, SseSerializer serializer) { + void sse_encode_box_autoadd_client_info_without_id( + ClientInfoWithoutId self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_client_info_without_id(self, serializer); } @protected - void sse_encode_box_autoadd_device_type(DeviceType self, SseSerializer serializer) { + void sse_encode_box_autoadd_device_type( + DeviceType self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_device_type(self, serializer); } @protected - void sse_encode_box_autoadd_expecting_public_key(ExpectingPublicKey self, SseSerializer serializer) { + void sse_encode_box_autoadd_expecting_public_key( + ExpectingPublicKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_expecting_public_key(self, serializer); } @protected - void sse_encode_box_autoadd_file_metadata(FileMetadata self, SseSerializer serializer) { + void sse_encode_box_autoadd_file_metadata( + FileMetadata self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_file_metadata(self, serializer); } @protected - void sse_encode_box_autoadd_pin_config(PinConfig self, SseSerializer serializer) { + void sse_encode_box_autoadd_pin_config( + PinConfig self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_pin_config(self, serializer); } @protected - void sse_encode_box_autoadd_rtc_send_file_response(RTCSendFileResponse self, SseSerializer serializer) { + void sse_encode_box_autoadd_proposing_client_info( + ProposingClientInfo self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_proposing_client_info(self, serializer); + } + + @protected + void sse_encode_box_autoadd_rtc_send_file_response( + RTCSendFileResponse self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_rtc_send_file_response(self, serializer); } @protected - void sse_encode_box_autoadd_ws_server_sdp_message(WsServerSdpMessage self, SseSerializer serializer) { + void sse_encode_box_autoadd_ws_server_sdp_message( + WsServerSdpMessage self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_ws_server_sdp_message(self, serializer); } @@ -2101,7 +2581,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_client_info_without_id(ClientInfoWithoutId self, SseSerializer serializer) { + void sse_encode_client_info_without_id( + ClientInfoWithoutId self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String(self.alias, serializer); sse_encode_String(self.version, serializer); @@ -2117,7 +2598,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_expecting_public_key(ExpectingPublicKey self, SseSerializer serializer) { + void sse_encode_expecting_public_key( + ExpectingPublicKey self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String(self.publicKey, serializer); sse_encode_String(self.kind, serializer); @@ -2154,6 +2636,13 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { serializer.buffer.putPlatformInt64(self); } + @protected + void sse_encode_key_pair(KeyPair self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_String(self.privateKey, serializer); + sse_encode_String(self.publicKey, serializer); + } + @protected void sse_encode_list_String(List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -2164,7 +2653,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_list_client_info(List self, SseSerializer serializer) { + void sse_encode_list_client_info( + List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); for (final item in self) { @@ -2182,14 +2672,17 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer) { + void sse_encode_list_prim_u_8_loose( + List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); - serializer.buffer.putUint8List(self is Uint8List ? self : Uint8List.fromList(self)); + serializer.buffer + .putUint8List(self is Uint8List ? self : Uint8List.fromList(self)); } @protected - void sse_encode_list_prim_u_8_strict(Uint8List self, SseSerializer serializer) { + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_i_32(self.length, serializer); serializer.buffer.putUint8List(self); @@ -2206,7 +2699,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_opt_box_autoadd_device_type(DeviceType? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_device_type( + DeviceType? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -2216,7 +2710,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_opt_box_autoadd_expecting_public_key(ExpectingPublicKey? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_expecting_public_key( + ExpectingPublicKey? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -2226,7 +2721,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_opt_box_autoadd_file_metadata(FileMetadata? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_file_metadata( + FileMetadata? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -2236,7 +2732,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_opt_box_autoadd_pin_config(PinConfig? self, SseSerializer serializer) { + void sse_encode_opt_box_autoadd_pin_config( + PinConfig? self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_bool(self != null, serializer); @@ -2252,6 +2749,16 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { sse_encode_u_8(self.maxTries, serializer); } + @protected + void sse_encode_proposing_client_info( + ProposingClientInfo self, SseSerializer serializer) { + // Codec=Sse (Serialization based), see doc to use other codecs + sse_encode_String(self.alias, serializer); + sse_encode_String(self.version, serializer); + sse_encode_opt_String(self.deviceModel, serializer); + sse_encode_opt_box_autoadd_device_type(self.deviceType, serializer); + } + @protected void sse_encode_rtc_file_error(RTCFileError self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs @@ -2260,7 +2767,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_rtc_send_file_response(RTCSendFileResponse self, SseSerializer serializer) { + void sse_encode_rtc_send_file_response( + RTCSendFileResponse self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_String(self.id, serializer); sse_encode_bool(self.success, serializer); @@ -2321,7 +2829,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_ws_server_message(WsServerMessage self, SseSerializer serializer) { + void sse_encode_ws_server_message( + WsServerMessage self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs switch (self) { case WsServerMessage_Hello(client: final client, peers: final peers): @@ -2350,7 +2859,8 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @protected - void sse_encode_ws_server_sdp_message(WsServerSdpMessage self, SseSerializer serializer) { + void sse_encode_ws_server_sdp_message( + WsServerSdpMessage self, SseSerializer serializer) { // Codec=Sse (Serialization based), see doc to use other codecs sse_encode_client_info(self.peer, serializer); sse_encode_String(self.sessionId, serializer); @@ -2359,18 +2869,24 @@ class RustLibApiImpl extends RustLibApiImplPlatform implements RustLibApi { } @sealed -class LsSignalingConnectionImpl extends RustOpaque implements LsSignalingConnection { +class LsSignalingConnectionImpl extends RustOpaque + implements LsSignalingConnection { // Not to be used by end users - LsSignalingConnectionImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); + LsSignalingConnectionImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - LsSignalingConnectionImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + LsSignalingConnectionImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api.rust_arc_increment_strong_count_LsSignalingConnection, - rustArcDecrementStrongCount: RustLib.instance.api.rust_arc_decrement_strong_count_LsSignalingConnection, - rustArcDecrementStrongCountPtr: RustLib.instance.api.rust_arc_decrement_strong_count_LsSignalingConnectionPtr, + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_LsSignalingConnection, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_LsSignalingConnection, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_LsSignalingConnectionPtr, ); Future acceptOffer( @@ -2380,7 +2896,12 @@ class LsSignalingConnectionImpl extends RustOpaque implements LsSignalingConnect ExpectingPublicKey? expectingPublicKey, PinConfig? pin}) => RustLib.instance.api.crateApiWebrtcLsSignalingConnectionAcceptOffer( - that: this, stunServers: stunServers, offer: offer, privateKey: privateKey, expectingPublicKey: expectingPublicKey, pin: pin); + that: this, + stunServers: stunServers, + offer: offer, + privateKey: privateKey, + expectingPublicKey: expectingPublicKey, + pin: pin); Future sendOffer( {required List stunServers, @@ -2398,30 +2919,37 @@ class LsSignalingConnectionImpl extends RustOpaque implements LsSignalingConnect pin: pin, files: files); - Future updateInfo({required ClientInfoWithoutId info}) => - RustLib.instance.api.crateApiWebrtcLsSignalingConnectionUpdateInfo(that: this, info: info); + Future updateInfo({required ClientInfoWithoutId info}) => RustLib + .instance.api + .crateApiWebrtcLsSignalingConnectionUpdateInfo(that: this, info: info); } @sealed class RtcFileReceiverImpl extends RustOpaque implements RtcFileReceiver { // Not to be used by end users - RtcFileReceiverImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); + RtcFileReceiverImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users RtcFileReceiverImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api.rust_arc_increment_strong_count_RtcFileReceiver, - rustArcDecrementStrongCount: RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileReceiver, - rustArcDecrementStrongCountPtr: RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileReceiverPtr, + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_RtcFileReceiver, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileReceiver, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileReceiverPtr, ); - Future getFileId() => RustLib.instance.api.crateApiWebrtcRtcFileReceiverGetFileId( + Future getFileId() => + RustLib.instance.api.crateApiWebrtcRtcFileReceiverGetFileId( that: this, ); - Stream receive() => RustLib.instance.api.crateApiWebrtcRtcFileReceiverReceive( + Stream receive() => + RustLib.instance.api.crateApiWebrtcRtcFileReceiverReceive( that: this, ); } @@ -2429,93 +2957,123 @@ class RtcFileReceiverImpl extends RustOpaque implements RtcFileReceiver { @sealed class RtcFileSenderImpl extends RustOpaque implements RtcFileSender { // Not to be used by end users - RtcFileSenderImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); + RtcFileSenderImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - RtcFileSenderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); - - static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api.rust_arc_increment_strong_count_RtcFileSender, - rustArcDecrementStrongCount: RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileSender, - rustArcDecrementStrongCountPtr: RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileSenderPtr, - ); - - Future send({required List data}) => RustLib.instance.api.crateApiWebrtcRtcFileSenderSend(that: this, data: data); -} - -@sealed -class RtcReceiveControllerImpl extends RustOpaque implements RtcReceiveController { - // Not to be used by end users - RtcReceiveControllerImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); - - // Not to be used by end users - RtcReceiveControllerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + RtcFileSenderImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api.rust_arc_increment_strong_count_RtcReceiveController, - rustArcDecrementStrongCount: RustLib.instance.api.rust_arc_decrement_strong_count_RtcReceiveController, - rustArcDecrementStrongCountPtr: RustLib.instance.api.rust_arc_decrement_strong_count_RtcReceiveControllerPtr, + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_RtcFileSender, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileSender, + rustArcDecrementStrongCountPtr: + RustLib.instance.api.rust_arc_decrement_strong_count_RtcFileSenderPtr, ); - Future decline() => RustLib.instance.api.crateApiWebrtcRtcReceiveControllerDecline( + Future send({required List data}) => RustLib.instance.api + .crateApiWebrtcRtcFileSenderSend(that: this, data: data); +} + +@sealed +class RtcReceiveControllerImpl extends RustOpaque + implements RtcReceiveController { + // Not to be used by end users + RtcReceiveControllerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); + + // Not to be used by end users + RtcReceiveControllerImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) + : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); + + static final _kStaticData = RustArcStaticData( + rustArcIncrementStrongCount: RustLib + .instance.api.rust_arc_increment_strong_count_RtcReceiveController, + rustArcDecrementStrongCount: RustLib + .instance.api.rust_arc_decrement_strong_count_RtcReceiveController, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_RtcReceiveControllerPtr, + ); + + Future decline() => + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerDecline( that: this, ); - Stream listenError() => RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenError( + Stream listenError() => + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenError( that: this, ); - Future> listenFiles() => RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenFiles( + Future> listenFiles() => + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenFiles( that: this, ); - Stream listenReceiving() => RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenReceiving( + Stream listenReceiving() => + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenReceiving( that: this, ); - Stream listenStatus() => RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenStatus( + Stream listenStatus() => + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerListenStatus( that: this, ); Future sendFileStatus({required RTCSendFileResponse status}) => - RustLib.instance.api.crateApiWebrtcRtcReceiveControllerSendFileStatus(that: this, status: status); + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerSendFileStatus( + that: this, status: status); - Future sendPin({required String pin}) => RustLib.instance.api.crateApiWebrtcRtcReceiveControllerSendPin(that: this, pin: pin); + Future sendPin({required String pin}) => RustLib.instance.api + .crateApiWebrtcRtcReceiveControllerSendPin(that: this, pin: pin); Future sendSelection({required Set selection}) => - RustLib.instance.api.crateApiWebrtcRtcReceiveControllerSendSelection(that: this, selection: selection); + RustLib.instance.api.crateApiWebrtcRtcReceiveControllerSendSelection( + that: this, selection: selection); } @sealed class RtcSendControllerImpl extends RustOpaque implements RtcSendController { // Not to be used by end users - RtcSendControllerImpl.frbInternalDcoDecode(List wire) : super.frbInternalDcoDecode(wire, _kStaticData); + RtcSendControllerImpl.frbInternalDcoDecode(List wire) + : super.frbInternalDcoDecode(wire, _kStaticData); // Not to be used by end users - RtcSendControllerImpl.frbInternalSseDecode(BigInt ptr, int externalSizeOnNative) + RtcSendControllerImpl.frbInternalSseDecode( + BigInt ptr, int externalSizeOnNative) : super.frbInternalSseDecode(ptr, externalSizeOnNative, _kStaticData); static final _kStaticData = RustArcStaticData( - rustArcIncrementStrongCount: RustLib.instance.api.rust_arc_increment_strong_count_RtcSendController, - rustArcDecrementStrongCount: RustLib.instance.api.rust_arc_decrement_strong_count_RtcSendController, - rustArcDecrementStrongCountPtr: RustLib.instance.api.rust_arc_decrement_strong_count_RtcSendControllerPtr, + rustArcIncrementStrongCount: + RustLib.instance.api.rust_arc_increment_strong_count_RtcSendController, + rustArcDecrementStrongCount: + RustLib.instance.api.rust_arc_decrement_strong_count_RtcSendController, + rustArcDecrementStrongCountPtr: RustLib + .instance.api.rust_arc_decrement_strong_count_RtcSendControllerPtr, ); - Stream listenError() => RustLib.instance.api.crateApiWebrtcRtcSendControllerListenError( + Stream listenError() => + RustLib.instance.api.crateApiWebrtcRtcSendControllerListenError( that: this, ); - Future> listenSelectedFiles() => RustLib.instance.api.crateApiWebrtcRtcSendControllerListenSelectedFiles( + Future> listenSelectedFiles() => + RustLib.instance.api.crateApiWebrtcRtcSendControllerListenSelectedFiles( that: this, ); - Stream listenStatus() => RustLib.instance.api.crateApiWebrtcRtcSendControllerListenStatus( + Stream listenStatus() => + RustLib.instance.api.crateApiWebrtcRtcSendControllerListenStatus( that: this, ); Future sendFile({required String fileId}) => - RustLib.instance.api.crateApiWebrtcRtcSendControllerSendFile(that: this, fileId: fileId); + RustLib.instance.api + .crateApiWebrtcRtcSendControllerSendFile(that: this, fileId: fileId); - Future sendPin({required String pin}) => RustLib.instance.api.crateApiWebrtcRtcSendControllerSendPin(that: this, pin: pin); + Future sendPin({required String pin}) => RustLib.instance.api + .crateApiWebrtcRtcSendControllerSendPin(that: this, pin: pin); } diff --git a/app/lib/rust/frb_generated.io.dart b/app/lib/rust/frb_generated.io.dart index 12786d30..c18bb3d6 100644 --- a/app/lib/rust/frb_generated.io.dart +++ b/app/lib/rust/frb_generated.io.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field @@ -23,56 +23,83 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LsSignalingConnectionPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnectionPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LsSignalingConnectionPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnectionPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcFileReceiverPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiverPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcFileReceiverPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiverPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcFileSenderPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSenderPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcFileSenderPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSenderPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcReceiveControllerPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveControllerPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcReceiveControllerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveControllerPtr; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcSendControllerPtr => - wire._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendControllerPtr; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcSendControllerPtr => wire + ._rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendControllerPtr; @protected AnyhowException dco_decode_AnyhowException(dynamic raw); @protected - LsSignalingConnection dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw); + LsSignalingConnection + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw); @protected - RtcFileReceiver dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw); + RtcFileReceiver + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw); @protected - RtcFileSender dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw); + RtcFileSender + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw); @protected - RtcReceiveController dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw); + RtcReceiveController + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw); @protected - RtcSendController dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected - RtcSendController dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected - LsSignalingConnection dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw); + LsSignalingConnection + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw); @protected - RtcFileReceiver dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw); + RtcFileReceiver + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw); @protected - RtcFileSender dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw); + RtcFileSender + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw); @protected - RtcReceiveController dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw); + RtcReceiveController + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw); @protected - RtcSendController dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected FutureOr Function(LsSignalingConnection) @@ -83,38 +110,52 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { Object dco_decode_DartOpaque(dynamic raw); @protected - LsSignalingConnection dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw); + LsSignalingConnection + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw); @protected - RtcFileReceiver dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw); + RtcFileReceiver + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw); @protected - RtcFileSender dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw); + RtcFileSender + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw); @protected - RtcReceiveController dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw); + RtcReceiveController + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw); @protected - RtcSendController dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected - Set dco_decode_Set_String(dynamic raw); + Set dco_decode_Set_String_None(dynamic raw); @protected - RustStreamSink dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink + dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + dynamic raw); + + @protected + RustStreamSink dco_decode_StreamSink_list_prim_u_8_strict_Sse( dynamic raw); @protected - RustStreamSink dco_decode_StreamSink_list_prim_u_8_strict_Sse(dynamic raw); - - @protected - RustStreamSink dco_decode_StreamSink_rtc_file_error_Sse(dynamic raw); + RustStreamSink dco_decode_StreamSink_rtc_file_error_Sse( + dynamic raw); @protected RustStreamSink dco_decode_StreamSink_rtc_status_Sse(dynamic raw); @protected - RustStreamSink dco_decode_StreamSink_ws_server_message_Sse(dynamic raw); + RustStreamSink dco_decode_StreamSink_ws_server_message_Sse( + dynamic raw); @protected String dco_decode_String(dynamic raw); @@ -129,7 +170,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { ClientInfo dco_decode_box_autoadd_client_info(dynamic raw); @protected - ClientInfoWithoutId dco_decode_box_autoadd_client_info_without_id(dynamic raw); + ClientInfoWithoutId dco_decode_box_autoadd_client_info_without_id( + dynamic raw); @protected DeviceType dco_decode_box_autoadd_device_type(dynamic raw); @@ -144,7 +186,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { PinConfig dco_decode_box_autoadd_pin_config(dynamic raw); @protected - RTCSendFileResponse dco_decode_box_autoadd_rtc_send_file_response(dynamic raw); + ProposingClientInfo dco_decode_box_autoadd_proposing_client_info(dynamic raw); + + @protected + RTCSendFileResponse dco_decode_box_autoadd_rtc_send_file_response( + dynamic raw); @protected WsServerSdpMessage dco_decode_box_autoadd_ws_server_sdp_message(dynamic raw); @@ -173,6 +219,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected PlatformInt64 dco_decode_isize(dynamic raw); + @protected + KeyPair dco_decode_key_pair(dynamic raw); + @protected List dco_decode_list_String(dynamic raw); @@ -195,7 +244,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { DeviceType? dco_decode_opt_box_autoadd_device_type(dynamic raw); @protected - ExpectingPublicKey? dco_decode_opt_box_autoadd_expecting_public_key(dynamic raw); + ExpectingPublicKey? dco_decode_opt_box_autoadd_expecting_public_key( + dynamic raw); @protected FileMetadata? dco_decode_opt_box_autoadd_file_metadata(dynamic raw); @@ -206,6 +256,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected PinConfig dco_decode_pin_config(dynamic raw); + @protected + ProposingClientInfo dco_decode_proposing_client_info(dynamic raw); + @protected RTCFileError dco_decode_rtc_file_error(dynamic raw); @@ -240,80 +293,111 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); @protected - LsSignalingConnection sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - SseDeserializer deserializer); + LsSignalingConnection + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer); @protected - RtcFileReceiver sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer); + RtcFileReceiver + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer); @protected - RtcFileSender sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer); + RtcFileSender + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer); @protected - RtcReceiveController sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - SseDeserializer deserializer); + RtcReceiveController + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer); + RtcSendController + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer); + RtcSendController + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected - LsSignalingConnection sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - SseDeserializer deserializer); + LsSignalingConnection + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer); @protected - RtcFileReceiver sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer); + RtcFileReceiver + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer); @protected - RtcFileSender sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer); + RtcFileSender + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer); @protected - RtcReceiveController sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - SseDeserializer deserializer); + RtcReceiveController + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(SseDeserializer deserializer); + RtcSendController + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected Object sse_decode_DartOpaque(SseDeserializer deserializer); @protected - LsSignalingConnection sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(SseDeserializer deserializer); + LsSignalingConnection + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer); @protected - RtcFileReceiver sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer); + RtcFileReceiver + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer); @protected - RtcFileSender sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer); + RtcFileSender + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer); @protected - RtcReceiveController sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(SseDeserializer deserializer); + RtcReceiveController + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(SseDeserializer deserializer); + RtcSendController + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected - Set sse_decode_Set_String(SseDeserializer deserializer); + Set sse_decode_Set_String_None(SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink + sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + SseDeserializer deserializer); + + @protected + RustStreamSink sse_decode_StreamSink_list_prim_u_8_strict_Sse( SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_list_prim_u_8_strict_Sse(SseDeserializer deserializer); + RustStreamSink sse_decode_StreamSink_rtc_file_error_Sse( + SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_rtc_file_error_Sse(SseDeserializer deserializer); + RustStreamSink sse_decode_StreamSink_rtc_status_Sse( + SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_rtc_status_Sse(SseDeserializer deserializer); - - @protected - RustStreamSink sse_decode_StreamSink_ws_server_message_Sse(SseDeserializer deserializer); + RustStreamSink sse_decode_StreamSink_ws_server_message_Sse( + SseDeserializer deserializer); @protected String sse_decode_String(SseDeserializer deserializer); @@ -328,37 +412,48 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { ClientInfo sse_decode_box_autoadd_client_info(SseDeserializer deserializer); @protected - ClientInfoWithoutId sse_decode_box_autoadd_client_info_without_id(SseDeserializer deserializer); + ClientInfoWithoutId sse_decode_box_autoadd_client_info_without_id( + SseDeserializer deserializer); @protected DeviceType sse_decode_box_autoadd_device_type(SseDeserializer deserializer); @protected - ExpectingPublicKey sse_decode_box_autoadd_expecting_public_key(SseDeserializer deserializer); + ExpectingPublicKey sse_decode_box_autoadd_expecting_public_key( + SseDeserializer deserializer); @protected - FileMetadata sse_decode_box_autoadd_file_metadata(SseDeserializer deserializer); + FileMetadata sse_decode_box_autoadd_file_metadata( + SseDeserializer deserializer); @protected PinConfig sse_decode_box_autoadd_pin_config(SseDeserializer deserializer); @protected - RTCSendFileResponse sse_decode_box_autoadd_rtc_send_file_response(SseDeserializer deserializer); + ProposingClientInfo sse_decode_box_autoadd_proposing_client_info( + SseDeserializer deserializer); @protected - WsServerSdpMessage sse_decode_box_autoadd_ws_server_sdp_message(SseDeserializer deserializer); + RTCSendFileResponse sse_decode_box_autoadd_rtc_send_file_response( + SseDeserializer deserializer); + + @protected + WsServerSdpMessage sse_decode_box_autoadd_ws_server_sdp_message( + SseDeserializer deserializer); @protected ClientInfo sse_decode_client_info(SseDeserializer deserializer); @protected - ClientInfoWithoutId sse_decode_client_info_without_id(SseDeserializer deserializer); + ClientInfoWithoutId sse_decode_client_info_without_id( + SseDeserializer deserializer); @protected DeviceType sse_decode_device_type(SseDeserializer deserializer); @protected - ExpectingPublicKey sse_decode_expecting_public_key(SseDeserializer deserializer); + ExpectingPublicKey sse_decode_expecting_public_key( + SseDeserializer deserializer); @protected FileDto sse_decode_file_dto(SseDeserializer deserializer); @@ -372,6 +467,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected PlatformInt64 sse_decode_isize(SseDeserializer deserializer); + @protected + KeyPair sse_decode_key_pair(SseDeserializer deserializer); + @protected List sse_decode_list_String(SseDeserializer deserializer); @@ -391,25 +489,34 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { String? sse_decode_opt_String(SseDeserializer deserializer); @protected - DeviceType? sse_decode_opt_box_autoadd_device_type(SseDeserializer deserializer); + DeviceType? sse_decode_opt_box_autoadd_device_type( + SseDeserializer deserializer); @protected - ExpectingPublicKey? sse_decode_opt_box_autoadd_expecting_public_key(SseDeserializer deserializer); + ExpectingPublicKey? sse_decode_opt_box_autoadd_expecting_public_key( + SseDeserializer deserializer); @protected - FileMetadata? sse_decode_opt_box_autoadd_file_metadata(SseDeserializer deserializer); + FileMetadata? sse_decode_opt_box_autoadd_file_metadata( + SseDeserializer deserializer); @protected - PinConfig? sse_decode_opt_box_autoadd_pin_config(SseDeserializer deserializer); + PinConfig? sse_decode_opt_box_autoadd_pin_config( + SseDeserializer deserializer); @protected PinConfig sse_decode_pin_config(SseDeserializer deserializer); + @protected + ProposingClientInfo sse_decode_proposing_client_info( + SseDeserializer deserializer); + @protected RTCFileError sse_decode_rtc_file_error(SseDeserializer deserializer); @protected - RTCSendFileResponse sse_decode_rtc_send_file_response(SseDeserializer deserializer); + RTCSendFileResponse sse_decode_rtc_send_file_response( + SseDeserializer deserializer); @protected RTCStatus sse_decode_rtc_status(SseDeserializer deserializer); @@ -433,97 +540,125 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { WsServerMessage sse_decode_ws_server_message(SseDeserializer deserializer); @protected - WsServerSdpMessage sse_decode_ws_server_sdp_message(SseDeserializer deserializer); + WsServerSdpMessage sse_decode_ws_server_sdp_message( + SseDeserializer deserializer); @protected - void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer); + void sse_encode_AnyhowException( + AnyhowException self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( - RtcFileReceiver self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( - RtcFileSender self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected - void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer); + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( - RtcFileReceiver self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(RtcFileSender self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected void sse_encode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException( - FutureOr Function(LsSignalingConnection) self, SseSerializer serializer); + FutureOr Function(LsSignalingConnection) self, + SseSerializer serializer); @protected void sse_encode_DartOpaque(Object self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(RtcFileReceiver self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(RtcFileSender self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(RtcSendController self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected - void sse_encode_Set_String(Set self, SseSerializer serializer); + void sse_encode_Set_String_None(Set self, SseSerializer serializer); @protected - void sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( - RustStreamSink self, SseSerializer serializer); + void + sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_list_prim_u_8_strict_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_list_prim_u_8_strict_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_rtc_file_error_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_rtc_file_error_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_rtc_status_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_rtc_status_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_ws_server_message_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_ws_server_message_Sse( + RustStreamSink self, SseSerializer serializer); @protected void sse_encode_String(String self, SseSerializer serializer); @@ -535,40 +670,54 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_bool(bool self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_client_info(ClientInfo self, SseSerializer serializer); + void sse_encode_box_autoadd_client_info( + ClientInfo self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_client_info_without_id(ClientInfoWithoutId self, SseSerializer serializer); + void sse_encode_box_autoadd_client_info_without_id( + ClientInfoWithoutId self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_device_type(DeviceType self, SseSerializer serializer); + void sse_encode_box_autoadd_device_type( + DeviceType self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_expecting_public_key(ExpectingPublicKey self, SseSerializer serializer); + void sse_encode_box_autoadd_expecting_public_key( + ExpectingPublicKey self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_file_metadata(FileMetadata self, SseSerializer serializer); + void sse_encode_box_autoadd_file_metadata( + FileMetadata self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_pin_config(PinConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_pin_config( + PinConfig self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_rtc_send_file_response(RTCSendFileResponse self, SseSerializer serializer); + void sse_encode_box_autoadd_proposing_client_info( + ProposingClientInfo self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ws_server_sdp_message(WsServerSdpMessage self, SseSerializer serializer); + void sse_encode_box_autoadd_rtc_send_file_response( + RTCSendFileResponse self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_ws_server_sdp_message( + WsServerSdpMessage self, SseSerializer serializer); @protected void sse_encode_client_info(ClientInfo self, SseSerializer serializer); @protected - void sse_encode_client_info_without_id(ClientInfoWithoutId self, SseSerializer serializer); + void sse_encode_client_info_without_id( + ClientInfoWithoutId self, SseSerializer serializer); @protected void sse_encode_device_type(DeviceType self, SseSerializer serializer); @protected - void sse_encode_expecting_public_key(ExpectingPublicKey self, SseSerializer serializer); + void sse_encode_expecting_public_key( + ExpectingPublicKey self, SseSerializer serializer); @protected void sse_encode_file_dto(FileDto self, SseSerializer serializer); @@ -582,11 +731,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void sse_encode_isize(PlatformInt64 self, SseSerializer serializer); + @protected + void sse_encode_key_pair(KeyPair self, SseSerializer serializer); + @protected void sse_encode_list_String(List self, SseSerializer serializer); @protected - void sse_encode_list_client_info(List self, SseSerializer serializer); + void sse_encode_list_client_info( + List self, SseSerializer serializer); @protected void sse_encode_list_file_dto(List self, SseSerializer serializer); @@ -595,31 +748,41 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer); @protected - void sse_encode_list_prim_u_8_strict(Uint8List self, SseSerializer serializer); + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer); @protected void sse_encode_opt_String(String? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_device_type(DeviceType? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_device_type( + DeviceType? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_expecting_public_key(ExpectingPublicKey? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_expecting_public_key( + ExpectingPublicKey? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_file_metadata(FileMetadata? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_file_metadata( + FileMetadata? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_pin_config(PinConfig? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_pin_config( + PinConfig? self, SseSerializer serializer); @protected void sse_encode_pin_config(PinConfig self, SseSerializer serializer); + @protected + void sse_encode_proposing_client_info( + ProposingClientInfo self, SseSerializer serializer); + @protected void sse_encode_rtc_file_error(RTCFileError self, SseSerializer serializer); @protected - void sse_encode_rtc_send_file_response(RTCSendFileResponse self, SseSerializer serializer); + void sse_encode_rtc_send_file_response( + RTCSendFileResponse self, SseSerializer serializer); @protected void sse_encode_rtc_status(RTCStatus self, SseSerializer serializer); @@ -640,24 +803,30 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_usize(BigInt self, SseSerializer serializer); @protected - void sse_encode_ws_server_message(WsServerMessage self, SseSerializer serializer); + void sse_encode_ws_server_message( + WsServerMessage self, SseSerializer serializer); @protected - void sse_encode_ws_server_sdp_message(WsServerSdpMessage self, SseSerializer serializer); + void sse_encode_ws_server_sdp_message( + WsServerSdpMessage self, SseSerializer serializer); } // Section: wire_class class RustLibWire implements BaseWire { - factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) => RustLibWire(lib.ffiDynamicLibrary); + factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) => + RustLibWire(lib.ffiDynamicLibrary); /// Holds the symbol lookup function. - final ffi.Pointer Function(String symbolName) _lookup; + final ffi.Pointer Function(String symbolName) + _lookup; /// The symbols are looked up in [dynamicLibrary]. - RustLibWire(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + RustLibWire(ffi.DynamicLibrary dynamicLibrary) + : _lookup = dynamicLibrary.lookup; - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( ffi.Pointer ptr, ) { return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( @@ -672,7 +841,8 @@ class RustLibWire implements BaseWire { _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnectionPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( ffi.Pointer ptr, ) { return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( @@ -687,7 +857,8 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnectionPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( ffi.Pointer ptr, ) { return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( @@ -702,7 +873,8 @@ class RustLibWire implements BaseWire { _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiverPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( ffi.Pointer ptr, ) { return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( @@ -717,7 +889,8 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiverPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( ffi.Pointer ptr, ) { return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( @@ -732,7 +905,8 @@ class RustLibWire implements BaseWire { _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSenderPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( ffi.Pointer ptr, ) { return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( @@ -747,7 +921,8 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSenderPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( ffi.Pointer ptr, ) { return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( @@ -762,7 +937,8 @@ class RustLibWire implements BaseWire { _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveControllerPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( ffi.Pointer ptr, ) { return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( @@ -777,7 +953,8 @@ class RustLibWire implements BaseWire { _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveControllerPtr .asFunction)>(); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( ffi.Pointer ptr, ) { return _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( @@ -792,7 +969,8 @@ class RustLibWire implements BaseWire { _rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendControllerPtr .asFunction)>(); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( ffi.Pointer ptr, ) { return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( diff --git a/app/lib/rust/frb_generated.web.dart b/app/lib/rust/frb_generated.web.dart index b2b3c65c..eb99cd1f 100644 --- a/app/lib/rust/frb_generated.web.dart +++ b/app/lib/rust/frb_generated.web.dart @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. // ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field @@ -25,56 +25,83 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { required super.portManager, }); - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_LsSignalingConnectionPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_LsSignalingConnectionPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcFileReceiverPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcFileReceiverPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcFileSenderPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcFileSenderPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcReceiveControllerPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcReceiveControllerPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController; - CrossPlatformFinalizerArg get rust_arc_decrement_strong_count_RtcSendControllerPtr => - wire.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController; + CrossPlatformFinalizerArg + get rust_arc_decrement_strong_count_RtcSendControllerPtr => wire + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController; @protected AnyhowException dco_decode_AnyhowException(dynamic raw); @protected - LsSignalingConnection dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw); + LsSignalingConnection + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw); @protected - RtcFileReceiver dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw); + RtcFileReceiver + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw); @protected - RtcFileSender dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw); + RtcFileSender + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw); @protected - RtcReceiveController dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw); + RtcReceiveController + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw); @protected - RtcSendController dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected - RtcSendController dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected - LsSignalingConnection dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw); + LsSignalingConnection + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw); @protected - RtcFileReceiver dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw); + RtcFileReceiver + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw); @protected - RtcFileSender dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw); + RtcFileSender + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw); @protected - RtcReceiveController dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw); + RtcReceiveController + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw); @protected - RtcSendController dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected FutureOr Function(LsSignalingConnection) @@ -85,38 +112,52 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { Object dco_decode_DartOpaque(dynamic raw); @protected - LsSignalingConnection dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(dynamic raw); + LsSignalingConnection + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + dynamic raw); @protected - RtcFileReceiver dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(dynamic raw); + RtcFileReceiver + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + dynamic raw); @protected - RtcFileSender dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(dynamic raw); + RtcFileSender + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + dynamic raw); @protected - RtcReceiveController dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(dynamic raw); + RtcReceiveController + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + dynamic raw); @protected - RtcSendController dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(dynamic raw); + RtcSendController + dco_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + dynamic raw); @protected - Set dco_decode_Set_String(dynamic raw); + Set dco_decode_Set_String_None(dynamic raw); @protected - RustStreamSink dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink + dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + dynamic raw); + + @protected + RustStreamSink dco_decode_StreamSink_list_prim_u_8_strict_Sse( dynamic raw); @protected - RustStreamSink dco_decode_StreamSink_list_prim_u_8_strict_Sse(dynamic raw); - - @protected - RustStreamSink dco_decode_StreamSink_rtc_file_error_Sse(dynamic raw); + RustStreamSink dco_decode_StreamSink_rtc_file_error_Sse( + dynamic raw); @protected RustStreamSink dco_decode_StreamSink_rtc_status_Sse(dynamic raw); @protected - RustStreamSink dco_decode_StreamSink_ws_server_message_Sse(dynamic raw); + RustStreamSink dco_decode_StreamSink_ws_server_message_Sse( + dynamic raw); @protected String dco_decode_String(dynamic raw); @@ -131,7 +172,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { ClientInfo dco_decode_box_autoadd_client_info(dynamic raw); @protected - ClientInfoWithoutId dco_decode_box_autoadd_client_info_without_id(dynamic raw); + ClientInfoWithoutId dco_decode_box_autoadd_client_info_without_id( + dynamic raw); @protected DeviceType dco_decode_box_autoadd_device_type(dynamic raw); @@ -146,7 +188,11 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { PinConfig dco_decode_box_autoadd_pin_config(dynamic raw); @protected - RTCSendFileResponse dco_decode_box_autoadd_rtc_send_file_response(dynamic raw); + ProposingClientInfo dco_decode_box_autoadd_proposing_client_info(dynamic raw); + + @protected + RTCSendFileResponse dco_decode_box_autoadd_rtc_send_file_response( + dynamic raw); @protected WsServerSdpMessage dco_decode_box_autoadd_ws_server_sdp_message(dynamic raw); @@ -175,6 +221,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected PlatformInt64 dco_decode_isize(dynamic raw); + @protected + KeyPair dco_decode_key_pair(dynamic raw); + @protected List dco_decode_list_String(dynamic raw); @@ -197,7 +246,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { DeviceType? dco_decode_opt_box_autoadd_device_type(dynamic raw); @protected - ExpectingPublicKey? dco_decode_opt_box_autoadd_expecting_public_key(dynamic raw); + ExpectingPublicKey? dco_decode_opt_box_autoadd_expecting_public_key( + dynamic raw); @protected FileMetadata? dco_decode_opt_box_autoadd_file_metadata(dynamic raw); @@ -208,6 +258,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected PinConfig dco_decode_pin_config(dynamic raw); + @protected + ProposingClientInfo dco_decode_proposing_client_info(dynamic raw); + @protected RTCFileError dco_decode_rtc_file_error(dynamic raw); @@ -242,80 +295,111 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer); @protected - LsSignalingConnection sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - SseDeserializer deserializer); + LsSignalingConnection + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer); @protected - RtcFileReceiver sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer); + RtcFileReceiver + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer); @protected - RtcFileSender sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer); + RtcFileSender + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer); @protected - RtcReceiveController sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - SseDeserializer deserializer); + RtcReceiveController + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer); + RtcSendController + sse_decode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - SseDeserializer deserializer); + RtcSendController + sse_decode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected - LsSignalingConnection sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - SseDeserializer deserializer); + LsSignalingConnection + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer); @protected - RtcFileReceiver sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer); + RtcFileReceiver + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer); @protected - RtcFileSender sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer); + RtcFileSender + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer); @protected - RtcReceiveController sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - SseDeserializer deserializer); + RtcReceiveController + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(SseDeserializer deserializer); + RtcSendController + sse_decode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected Object sse_decode_DartOpaque(SseDeserializer deserializer); @protected - LsSignalingConnection sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(SseDeserializer deserializer); + LsSignalingConnection + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + SseDeserializer deserializer); @protected - RtcFileReceiver sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(SseDeserializer deserializer); + RtcFileReceiver + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + SseDeserializer deserializer); @protected - RtcFileSender sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(SseDeserializer deserializer); + RtcFileSender + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + SseDeserializer deserializer); @protected - RtcReceiveController sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(SseDeserializer deserializer); + RtcReceiveController + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + SseDeserializer deserializer); @protected - RtcSendController sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(SseDeserializer deserializer); + RtcSendController + sse_decode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + SseDeserializer deserializer); @protected - Set sse_decode_Set_String(SseDeserializer deserializer); + Set sse_decode_Set_String_None(SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink + sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + SseDeserializer deserializer); + + @protected + RustStreamSink sse_decode_StreamSink_list_prim_u_8_strict_Sse( SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_list_prim_u_8_strict_Sse(SseDeserializer deserializer); + RustStreamSink sse_decode_StreamSink_rtc_file_error_Sse( + SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_rtc_file_error_Sse(SseDeserializer deserializer); + RustStreamSink sse_decode_StreamSink_rtc_status_Sse( + SseDeserializer deserializer); @protected - RustStreamSink sse_decode_StreamSink_rtc_status_Sse(SseDeserializer deserializer); - - @protected - RustStreamSink sse_decode_StreamSink_ws_server_message_Sse(SseDeserializer deserializer); + RustStreamSink sse_decode_StreamSink_ws_server_message_Sse( + SseDeserializer deserializer); @protected String sse_decode_String(SseDeserializer deserializer); @@ -330,37 +414,48 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { ClientInfo sse_decode_box_autoadd_client_info(SseDeserializer deserializer); @protected - ClientInfoWithoutId sse_decode_box_autoadd_client_info_without_id(SseDeserializer deserializer); + ClientInfoWithoutId sse_decode_box_autoadd_client_info_without_id( + SseDeserializer deserializer); @protected DeviceType sse_decode_box_autoadd_device_type(SseDeserializer deserializer); @protected - ExpectingPublicKey sse_decode_box_autoadd_expecting_public_key(SseDeserializer deserializer); + ExpectingPublicKey sse_decode_box_autoadd_expecting_public_key( + SseDeserializer deserializer); @protected - FileMetadata sse_decode_box_autoadd_file_metadata(SseDeserializer deserializer); + FileMetadata sse_decode_box_autoadd_file_metadata( + SseDeserializer deserializer); @protected PinConfig sse_decode_box_autoadd_pin_config(SseDeserializer deserializer); @protected - RTCSendFileResponse sse_decode_box_autoadd_rtc_send_file_response(SseDeserializer deserializer); + ProposingClientInfo sse_decode_box_autoadd_proposing_client_info( + SseDeserializer deserializer); @protected - WsServerSdpMessage sse_decode_box_autoadd_ws_server_sdp_message(SseDeserializer deserializer); + RTCSendFileResponse sse_decode_box_autoadd_rtc_send_file_response( + SseDeserializer deserializer); + + @protected + WsServerSdpMessage sse_decode_box_autoadd_ws_server_sdp_message( + SseDeserializer deserializer); @protected ClientInfo sse_decode_client_info(SseDeserializer deserializer); @protected - ClientInfoWithoutId sse_decode_client_info_without_id(SseDeserializer deserializer); + ClientInfoWithoutId sse_decode_client_info_without_id( + SseDeserializer deserializer); @protected DeviceType sse_decode_device_type(SseDeserializer deserializer); @protected - ExpectingPublicKey sse_decode_expecting_public_key(SseDeserializer deserializer); + ExpectingPublicKey sse_decode_expecting_public_key( + SseDeserializer deserializer); @protected FileDto sse_decode_file_dto(SseDeserializer deserializer); @@ -374,6 +469,9 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected PlatformInt64 sse_decode_isize(SseDeserializer deserializer); + @protected + KeyPair sse_decode_key_pair(SseDeserializer deserializer); + @protected List sse_decode_list_String(SseDeserializer deserializer); @@ -393,25 +491,34 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { String? sse_decode_opt_String(SseDeserializer deserializer); @protected - DeviceType? sse_decode_opt_box_autoadd_device_type(SseDeserializer deserializer); + DeviceType? sse_decode_opt_box_autoadd_device_type( + SseDeserializer deserializer); @protected - ExpectingPublicKey? sse_decode_opt_box_autoadd_expecting_public_key(SseDeserializer deserializer); + ExpectingPublicKey? sse_decode_opt_box_autoadd_expecting_public_key( + SseDeserializer deserializer); @protected - FileMetadata? sse_decode_opt_box_autoadd_file_metadata(SseDeserializer deserializer); + FileMetadata? sse_decode_opt_box_autoadd_file_metadata( + SseDeserializer deserializer); @protected - PinConfig? sse_decode_opt_box_autoadd_pin_config(SseDeserializer deserializer); + PinConfig? sse_decode_opt_box_autoadd_pin_config( + SseDeserializer deserializer); @protected PinConfig sse_decode_pin_config(SseDeserializer deserializer); + @protected + ProposingClientInfo sse_decode_proposing_client_info( + SseDeserializer deserializer); + @protected RTCFileError sse_decode_rtc_file_error(SseDeserializer deserializer); @protected - RTCSendFileResponse sse_decode_rtc_send_file_response(SseDeserializer deserializer); + RTCSendFileResponse sse_decode_rtc_send_file_response( + SseDeserializer deserializer); @protected RTCStatus sse_decode_rtc_status(SseDeserializer deserializer); @@ -435,97 +542,125 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { WsServerMessage sse_decode_ws_server_message(SseDeserializer deserializer); @protected - WsServerSdpMessage sse_decode_ws_server_sdp_message(SseDeserializer deserializer); + WsServerSdpMessage sse_decode_ws_server_sdp_message( + SseDeserializer deserializer); @protected - void sse_encode_AnyhowException(AnyhowException self, SseSerializer serializer); + void sse_encode_AnyhowException( + AnyhowException self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( - RtcFileReceiver self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( - RtcFileSender self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer); @protected - void sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer); + void + sse_encode_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected - void sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer); + void + sse_encode_Auto_RefMut_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( - RtcFileReceiver self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(RtcFileSender self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer); @protected - void sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( - RtcSendController self, SseSerializer serializer); + void + sse_encode_Auto_Ref_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected void sse_encode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException( - FutureOr Function(LsSignalingConnection) self, SseSerializer serializer); + FutureOr Function(LsSignalingConnection) self, + SseSerializer serializer); @protected void sse_encode_DartOpaque(Object self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( - LsSignalingConnection self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + LsSignalingConnection self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(RtcFileReceiver self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + RtcFileReceiver self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(RtcFileSender self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + RtcFileSender self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( - RtcReceiveController self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + RtcReceiveController self, SseSerializer serializer); @protected - void sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(RtcSendController self, SseSerializer serializer); + void + sse_encode_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + RtcSendController self, SseSerializer serializer); @protected - void sse_encode_Set_String(Set self, SseSerializer serializer); + void sse_encode_Set_String_None(Set self, SseSerializer serializer); @protected - void sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( - RustStreamSink self, SseSerializer serializer); + void + sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_list_prim_u_8_strict_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_list_prim_u_8_strict_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_rtc_file_error_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_rtc_file_error_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_rtc_status_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_rtc_status_Sse( + RustStreamSink self, SseSerializer serializer); @protected - void sse_encode_StreamSink_ws_server_message_Sse(RustStreamSink self, SseSerializer serializer); + void sse_encode_StreamSink_ws_server_message_Sse( + RustStreamSink self, SseSerializer serializer); @protected void sse_encode_String(String self, SseSerializer serializer); @@ -537,40 +672,54 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_bool(bool self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_client_info(ClientInfo self, SseSerializer serializer); + void sse_encode_box_autoadd_client_info( + ClientInfo self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_client_info_without_id(ClientInfoWithoutId self, SseSerializer serializer); + void sse_encode_box_autoadd_client_info_without_id( + ClientInfoWithoutId self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_device_type(DeviceType self, SseSerializer serializer); + void sse_encode_box_autoadd_device_type( + DeviceType self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_expecting_public_key(ExpectingPublicKey self, SseSerializer serializer); + void sse_encode_box_autoadd_expecting_public_key( + ExpectingPublicKey self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_file_metadata(FileMetadata self, SseSerializer serializer); + void sse_encode_box_autoadd_file_metadata( + FileMetadata self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_pin_config(PinConfig self, SseSerializer serializer); + void sse_encode_box_autoadd_pin_config( + PinConfig self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_rtc_send_file_response(RTCSendFileResponse self, SseSerializer serializer); + void sse_encode_box_autoadd_proposing_client_info( + ProposingClientInfo self, SseSerializer serializer); @protected - void sse_encode_box_autoadd_ws_server_sdp_message(WsServerSdpMessage self, SseSerializer serializer); + void sse_encode_box_autoadd_rtc_send_file_response( + RTCSendFileResponse self, SseSerializer serializer); + + @protected + void sse_encode_box_autoadd_ws_server_sdp_message( + WsServerSdpMessage self, SseSerializer serializer); @protected void sse_encode_client_info(ClientInfo self, SseSerializer serializer); @protected - void sse_encode_client_info_without_id(ClientInfoWithoutId self, SseSerializer serializer); + void sse_encode_client_info_without_id( + ClientInfoWithoutId self, SseSerializer serializer); @protected void sse_encode_device_type(DeviceType self, SseSerializer serializer); @protected - void sse_encode_expecting_public_key(ExpectingPublicKey self, SseSerializer serializer); + void sse_encode_expecting_public_key( + ExpectingPublicKey self, SseSerializer serializer); @protected void sse_encode_file_dto(FileDto self, SseSerializer serializer); @@ -584,11 +733,15 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { @protected void sse_encode_isize(PlatformInt64 self, SseSerializer serializer); + @protected + void sse_encode_key_pair(KeyPair self, SseSerializer serializer); + @protected void sse_encode_list_String(List self, SseSerializer serializer); @protected - void sse_encode_list_client_info(List self, SseSerializer serializer); + void sse_encode_list_client_info( + List self, SseSerializer serializer); @protected void sse_encode_list_file_dto(List self, SseSerializer serializer); @@ -597,31 +750,41 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_list_prim_u_8_loose(List self, SseSerializer serializer); @protected - void sse_encode_list_prim_u_8_strict(Uint8List self, SseSerializer serializer); + void sse_encode_list_prim_u_8_strict( + Uint8List self, SseSerializer serializer); @protected void sse_encode_opt_String(String? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_device_type(DeviceType? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_device_type( + DeviceType? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_expecting_public_key(ExpectingPublicKey? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_expecting_public_key( + ExpectingPublicKey? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_file_metadata(FileMetadata? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_file_metadata( + FileMetadata? self, SseSerializer serializer); @protected - void sse_encode_opt_box_autoadd_pin_config(PinConfig? self, SseSerializer serializer); + void sse_encode_opt_box_autoadd_pin_config( + PinConfig? self, SseSerializer serializer); @protected void sse_encode_pin_config(PinConfig self, SseSerializer serializer); + @protected + void sse_encode_proposing_client_info( + ProposingClientInfo self, SseSerializer serializer); + @protected void sse_encode_rtc_file_error(RTCFileError self, SseSerializer serializer); @protected - void sse_encode_rtc_send_file_response(RTCSendFileResponse self, SseSerializer serializer); + void sse_encode_rtc_send_file_response( + RTCSendFileResponse self, SseSerializer serializer); @protected void sse_encode_rtc_status(RTCStatus self, SseSerializer serializer); @@ -642,10 +805,12 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { void sse_encode_usize(BigInt self, SseSerializer serializer); @protected - void sse_encode_ws_server_message(WsServerMessage self, SseSerializer serializer); + void sse_encode_ws_server_message( + WsServerMessage self, SseSerializer serializer); @protected - void sse_encode_ws_server_sdp_message(WsServerSdpMessage self, SseSerializer serializer); + void sse_encode_ws_server_sdp_message( + WsServerSdpMessage self, SseSerializer serializer); } // Section: wire_class @@ -653,35 +818,65 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl { class RustLibWire implements BaseWire { RustLibWire.fromExternalLibrary(ExternalLibrary lib); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(int ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + ptr); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(int ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(ptr); + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(int ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + ptr); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(int ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(ptr); + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(int ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + ptr); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(int ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(ptr); + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(int ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + ptr); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(int ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(ptr); + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + ptr); - void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(int ptr) => - wasmModule.rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(ptr); + void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + int ptr) => + wasmModule + .rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + ptr); - void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(int ptr) => - wasmModule.rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(ptr); + void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + int ptr) => + wasmModule + .rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + ptr); } @JS('wasm_bindgen') @@ -690,23 +885,43 @@ external RustLibWasmModule get wasmModule; @JS() @anonymous extension type RustLibWasmModule._(JSObject _) implements JSObject { - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + int ptr); - external void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(int ptr); + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( + int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + int ptr); - external void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(int ptr); + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( + int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + int ptr); - external void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(int ptr); + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( + int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + int ptr); - external void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(int ptr); + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( + int ptr); - external void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(int ptr); + external void + rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + int ptr); - external void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(int ptr); + external void + rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( + int ptr); } diff --git a/app/lib/util/native/channel/android_channel.mapper.dart b/app/lib/util/native/channel/android_channel.mapper.dart index 1d57a34f..e1a0d6db 100644 --- a/app/lib/util/native/channel/android_channel.mapper.dart +++ b/app/lib/util/native/channel/android_channel.mapper.dart @@ -22,9 +22,11 @@ class PickDirectoryResultMapper extends ClassMapperBase { final String id = 'PickDirectoryResult'; static String _$directoryUri(PickDirectoryResult v) => v.directoryUri; - static const Field _f$directoryUri = Field('directoryUri', _$directoryUri); + static const Field _f$directoryUri = + Field('directoryUri', _$directoryUri); static List _$files(PickDirectoryResult v) => v.files; - static const Field> _f$files = Field('files', _$files); + static const Field> _f$files = + Field('files', _$files); @override final MappableFields fields = const { @@ -33,7 +35,8 @@ class PickDirectoryResultMapper extends ClassMapperBase { }; static PickDirectoryResult _instantiate(DecodingData data) { - return PickDirectoryResult(directoryUri: data.dec(_f$directoryUri), files: data.dec(_f$files)); + return PickDirectoryResult( + directoryUri: data.dec(_f$directoryUri), files: data.dec(_f$files)); } @override @@ -50,61 +53,81 @@ class PickDirectoryResultMapper extends ClassMapperBase { mixin PickDirectoryResultMappable { String serialize() { - return PickDirectoryResultMapper.ensureInitialized().encodeJson(this as PickDirectoryResult); + return PickDirectoryResultMapper.ensureInitialized() + .encodeJson(this as PickDirectoryResult); } Map toJson() { - return PickDirectoryResultMapper.ensureInitialized().encodeMap(this as PickDirectoryResult); + return PickDirectoryResultMapper.ensureInitialized() + .encodeMap(this as PickDirectoryResult); } - PickDirectoryResultCopyWith get copyWith => - _PickDirectoryResultCopyWithImpl(this as PickDirectoryResult, $identity, $identity); + PickDirectoryResultCopyWith + get copyWith => _PickDirectoryResultCopyWithImpl( + this as PickDirectoryResult, $identity, $identity); @override String toString() { - return PickDirectoryResultMapper.ensureInitialized().stringifyValue(this as PickDirectoryResult); + return PickDirectoryResultMapper.ensureInitialized() + .stringifyValue(this as PickDirectoryResult); } @override bool operator ==(Object other) { - return PickDirectoryResultMapper.ensureInitialized().equalsValue(this as PickDirectoryResult, other); + return PickDirectoryResultMapper.ensureInitialized() + .equalsValue(this as PickDirectoryResult, other); } @override int get hashCode { - return PickDirectoryResultMapper.ensureInitialized().hashValue(this as PickDirectoryResult); + return PickDirectoryResultMapper.ensureInitialized() + .hashValue(this as PickDirectoryResult); } } -extension PickDirectoryResultValueCopy<$R, $Out> on ObjectCopyWith<$R, PickDirectoryResult, $Out> { - PickDirectoryResultCopyWith<$R, PickDirectoryResult, $Out> get $asPickDirectoryResult => - $base.as((v, t, t2) => _PickDirectoryResultCopyWithImpl(v, t, t2)); +extension PickDirectoryResultValueCopy<$R, $Out> + on ObjectCopyWith<$R, PickDirectoryResult, $Out> { + PickDirectoryResultCopyWith<$R, PickDirectoryResult, $Out> + get $asPickDirectoryResult => + $base.as((v, t, t2) => _PickDirectoryResultCopyWithImpl(v, t, t2)); } -abstract class PickDirectoryResultCopyWith<$R, $In extends PickDirectoryResult, $Out> implements ClassCopyWith<$R, $In, $Out> { - ListCopyWith<$R, FileInfo, FileInfoCopyWith<$R, FileInfo, FileInfo>> get files; +abstract class PickDirectoryResultCopyWith<$R, $In extends PickDirectoryResult, + $Out> implements ClassCopyWith<$R, $In, $Out> { + ListCopyWith<$R, FileInfo, FileInfoCopyWith<$R, FileInfo, FileInfo>> + get files; $R call({String? directoryUri, List? files}); - PickDirectoryResultCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + PickDirectoryResultCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _PickDirectoryResultCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PickDirectoryResult, $Out> +class _PickDirectoryResultCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, PickDirectoryResult, $Out> implements PickDirectoryResultCopyWith<$R, PickDirectoryResult, $Out> { _PickDirectoryResultCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = PickDirectoryResultMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + PickDirectoryResultMapper.ensureInitialized(); @override - ListCopyWith<$R, FileInfo, FileInfoCopyWith<$R, FileInfo, FileInfo>> get files => - ListCopyWith($value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); + ListCopyWith<$R, FileInfo, FileInfoCopyWith<$R, FileInfo, FileInfo>> + get files => ListCopyWith( + $value.files, (v, t) => v.copyWith.$chain(t), (v) => call(files: v)); @override $R call({String? directoryUri, List? files}) => - $apply(FieldCopyWithData({if (directoryUri != null) #directoryUri: directoryUri, if (files != null) #files: files})); + $apply(FieldCopyWithData({ + if (directoryUri != null) #directoryUri: directoryUri, + if (files != null) #files: files + })); @override - PickDirectoryResult $make(CopyWithData data) => - PickDirectoryResult(directoryUri: data.get(#directoryUri, or: $value.directoryUri), files: data.get(#files, or: $value.files)); + PickDirectoryResult $make(CopyWithData data) => PickDirectoryResult( + directoryUri: data.get(#directoryUri, or: $value.directoryUri), + files: data.get(#files, or: $value.files)); @override - PickDirectoryResultCopyWith<$R2, PickDirectoryResult, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _PickDirectoryResultCopyWithImpl($value, $cast, t); + PickDirectoryResultCopyWith<$R2, PickDirectoryResult, $Out2> + $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _PickDirectoryResultCopyWithImpl($value, $cast, t); } class FileInfoMapper extends ClassMapperBase { @@ -128,7 +151,8 @@ class FileInfoMapper extends ClassMapperBase { static String _$uri(FileInfo v) => v.uri; static const Field _f$uri = Field('uri', _$uri); static int _$lastModified(FileInfo v) => v.lastModified; - static const Field _f$lastModified = Field('lastModified', _$lastModified); + static const Field _f$lastModified = + Field('lastModified', _$lastModified); @override final MappableFields fields = const { @@ -139,7 +163,11 @@ class FileInfoMapper extends ClassMapperBase { }; static FileInfo _instantiate(DecodingData data) { - return FileInfo(name: data.dec(_f$name), size: data.dec(_f$size), uri: data.dec(_f$uri), lastModified: data.dec(_f$lastModified)); + return FileInfo( + name: data.dec(_f$name), + size: data.dec(_f$size), + uri: data.dec(_f$uri), + lastModified: data.dec(_f$lastModified)); } @override @@ -156,14 +184,17 @@ class FileInfoMapper extends ClassMapperBase { mixin FileInfoMappable { String serialize() { - return FileInfoMapper.ensureInitialized().encodeJson(this as FileInfo); + return FileInfoMapper.ensureInitialized() + .encodeJson(this as FileInfo); } Map toJson() { - return FileInfoMapper.ensureInitialized().encodeMap(this as FileInfo); + return FileInfoMapper.ensureInitialized() + .encodeMap(this as FileInfo); } - FileInfoCopyWith get copyWith => _FileInfoCopyWithImpl(this as FileInfo, $identity, $identity); + FileInfoCopyWith get copyWith => + _FileInfoCopyWithImpl(this as FileInfo, $identity, $identity); @override String toString() { return FileInfoMapper.ensureInitialized().stringifyValue(this as FileInfo); @@ -171,7 +202,8 @@ mixin FileInfoMappable { @override bool operator ==(Object other) { - return FileInfoMapper.ensureInitialized().equalsValue(this as FileInfo, other); + return FileInfoMapper.ensureInitialized() + .equalsValue(this as FileInfo, other); } @override @@ -181,21 +213,27 @@ mixin FileInfoMappable { } extension FileInfoValueCopy<$R, $Out> on ObjectCopyWith<$R, FileInfo, $Out> { - FileInfoCopyWith<$R, FileInfo, $Out> get $asFileInfo => $base.as((v, t, t2) => _FileInfoCopyWithImpl(v, t, t2)); + FileInfoCopyWith<$R, FileInfo, $Out> get $asFileInfo => + $base.as((v, t, t2) => _FileInfoCopyWithImpl(v, t, t2)); } -abstract class FileInfoCopyWith<$R, $In extends FileInfo, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class FileInfoCopyWith<$R, $In extends FileInfo, $Out> + implements ClassCopyWith<$R, $In, $Out> { $R call({String? name, int? size, String? uri, int? lastModified}); FileInfoCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _FileInfoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FileInfo, $Out> implements FileInfoCopyWith<$R, FileInfo, $Out> { +class _FileInfoCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, FileInfo, $Out> + implements FileInfoCopyWith<$R, FileInfo, $Out> { _FileInfoCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = FileInfoMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + FileInfoMapper.ensureInitialized(); @override - $R call({String? name, int? size, String? uri, int? lastModified}) => $apply(FieldCopyWithData({ + $R call({String? name, int? size, String? uri, int? lastModified}) => + $apply(FieldCopyWithData({ if (name != null) #name: name, if (size != null) #size: size, if (uri != null) #uri: uri, @@ -209,5 +247,7 @@ class _FileInfoCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FileInfo, $O lastModified: data.get(#lastModified, or: $value.lastModified)); @override - FileInfoCopyWith<$R2, FileInfo, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _FileInfoCopyWithImpl($value, $cast, t); + FileInfoCopyWith<$R2, FileInfo, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => + _FileInfoCopyWithImpl($value, $cast, t); } diff --git a/app/lib/widget/list_tile/device_list_tile.dart b/app/lib/widget/list_tile/device_list_tile.dart index da9a6e6e..8d8c279f 100644 --- a/app/lib/widget/list_tile/device_list_tile.dart +++ b/app/lib/widget/list_tile/device_list_tile.dart @@ -57,7 +57,7 @@ class DeviceListTile extends StatelessWidget { DeviceBadge( backgroundColor: badgeColor, foregroundColor: Theme.of(context).colorScheme.onSecondaryContainer, - label: '#${device.ip!.visualId}', + label: 'LAN • HTTP', ) else DeviceBadge( diff --git a/app/macos/Podfile.lock b/app/macos/Podfile.lock index 0d599ae6..ecaddfd8 100644 --- a/app/macos/Podfile.lock +++ b/app/macos/Podfile.lock @@ -1,4 +1,6 @@ PODS: + - bitsdojo_window_macos (0.0.1): + - FlutterMacOS - connectivity_plus (0.0.1): - Flutter - FlutterMacOS @@ -56,6 +58,7 @@ PODS: - FlutterMacOS DEPENDENCIES: + - bitsdojo_window_macos (from `Flutter/ephemeral/.symlinks/plugins/bitsdojo_window_macos/macos`) - connectivity_plus (from `Flutter/ephemeral/.symlinks/plugins/connectivity_plus/darwin`) - Defaults (~> 4.2) - desktop_drop (from `Flutter/ephemeral/.symlinks/plugins/desktop_drop/macos`) @@ -87,6 +90,8 @@ SPEC REPOS: - Defaults EXTERNAL SOURCES: + bitsdojo_window_macos: + :path: Flutter/ephemeral/.symlinks/plugins/bitsdojo_window_macos/macos connectivity_plus: :path: Flutter/ephemeral/.symlinks/plugins/connectivity_plus/darwin desktop_drop: @@ -137,31 +142,32 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos SPEC CHECKSUMS: - connectivity_plus: 4c41c08fc6d7c91f63bc7aec70ffe3730b04f563 + bitsdojo_window_macos: 7959fb0ca65a3ccda30095c181ecb856fae48ea9 + connectivity_plus: b21496ab28d1324eb59885d888a4d83b98531f01 Defaults: d785e56c0fb8890dc40351603f05c8e1df1bdd45 - desktop_drop: 69eeff437544aa619c8db7f4481b3a65f7696898 - device_info_plus: 1b14eed9bf95428983aed283a8d51cce3d8c4215 - dynamic_color: 2eaa27267de1ca20d879fbd6e01259773fb1670f - file_selector_macos: cc3858c981fe6889f364731200d6232dac1d812d + desktop_drop: e0b672a7d84c0a6cbc378595e82cdb15f2970a43 + device_info_plus: 4fb280989f669696856f8b129e4a5e3cd6c48f76 + dynamic_color: b820c000cc68df65e7ba7ff177cb98404ce56651 + file_selector_macos: 6280b52b459ae6c590af5d78fc35c7267a3c4b31 FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - gal: 61e868295d28fe67ffa297fae6dacebf56fd53e1 - in_app_purchase_storekit: 8c3b0b3eb1b0f04efbff401c3de6266d4258d433 - network_info_plus: 2cb02d8435635eae13b3b79279681985121cf30c - open_dir_macos: 9649018f88e71eb9fb8aa3d95caec30a73c08c5b - package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5b - pasteboard: 9b69dba6fedbb04866be632205d532fe2f6b1d99 - path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 - photo_manager: ff695c7a1dd5bc379974953a2b5c0a293f7c4c8a - rhttp: 337afda4c3e4df31087160719ffca6452c225cc2 - rust_lib_localsend_app: d76a713174b8a3d81ef9b51c49e6400948566b6e - screen_retriever_macos: 776e0fa5d42c6163d2bf772d22478df4b302b161 - shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78 - tray_manager: 9064e219c56d75c476e46b9a21182087930baf90 - uri_content: bfedc2e58f0ee4de88a63e5bcb826398389b22cb - url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404 - video_player_avfoundation: 7c6c11d8470e1675df7397027218274b6d2360b3 - wakelock_plus: 4783562c9a43d209c458cb9b30692134af456269 - window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8 + gal: 44e5b10dbd347c8247a2851acee6c1fbe282c1d3 + in_app_purchase_storekit: e126ef1b89e4a9fdf07e28f005f82632b4609437 + network_info_plus: 21d1cd6a015ccb2fdff06a1fbfa88d54b4e92f61 + open_dir_macos: 79810d7921d777f8732bf6358b3a0839a8fad9b5 + package_info_plus: f0052d280d17aa382b932f399edf32507174e870 + pasteboard: 278d8100149f940fb795d6b3a74f0720c890ecb7 + path_provider_foundation: 080d55be775b7414fd5a5ef3ac137b97b097e564 + photo_manager: d2fbcc0f2d82458700ee6256a15018210a81d413 + rhttp: 08d791d6373089de796318f4cfb172cbcf34e78b + rust_lib_localsend_app: 6b270a4b507b1599a1d06c9ebf86d01adfa0e875 + screen_retriever_macos: 452e51764a9e1cdb74b3c541238795849f21557f + shared_preferences_foundation: 9e1978ff2562383bd5676f64ec4e9aa8fa06a6f7 + tray_manager: a104b5c81b578d83f3c3d0f40a997c8b10810166 + uri_content: a2350e4567f5fba3f48bb0f144f277eaddf0aa2c + url_launcher_macos: 0fba8ddabfc33ce0a9afe7c5fef5aab3d8d2d673 + video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b + wakelock_plus: 21ddc249ac4b8d018838dbdabd65c5976c308497 + window_manager: 1d01fa7ac65a6e6f83b965471b1a7fdd3f06166c PODFILE CHECKSUM: 5c6550f5101fcba381ddb97e2135e4cacca4f31f diff --git a/app/pubspec.lock b/app/pubspec.lock index ce432fdf..504122c5 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -587,10 +587,10 @@ packages: dependency: "direct main" description: name: flutter_rust_bridge - sha256: "3292ad6085552987b8b3b9a7e5805567f4013372d302736b702801acb001ee00" + sha256: "37ef40bc6f863652e865f0b2563ea07f0d3c58d8efad803cc01933a4b2ee067e" url: "https://pub.dev" source: hosted - version: "2.7.1" + version: "2.11.1" flutter_test: dependency: transitive description: flutter @@ -1391,10 +1391,10 @@ packages: dependency: "direct main" description: name: rhttp - sha256: "3deabc6c3384b4efa252dfb4a5059acc6530117fdc1b10f5f67ff9768c9af75a" + sha256: e8f0a8756a931598b7d9c4107a4afe93c2b81cbf8c45e532ba9dc52e12bbaa35 url: "https://pub.dev" source: hosted - version: "0.10.0" + version: "0.13.0" routerino: dependency: "direct main" description: diff --git a/app/pubspec.yaml b/app/pubspec.yaml index cd0fa197..e6d411bc 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: flutter_localizations: sdk: flutter flutter_markdown: 0.7.4+2 - flutter_rust_bridge: 2.7.1 + flutter_rust_bridge: 2.11.1 freezed_annotation: 2.4.4 gal: 2.3.0 glob: ^2.1.2 @@ -58,7 +58,7 @@ dependencies: pretty_qr_code: 3.3.0 refena_flutter: 3.1.0 refena_inspector_client: 2.1.0 - rhttp: 0.10.0 + rhttp: 0.13.0 routerino: 0.8.0 rust_lib_localsend_app: path: rust_builder diff --git a/app/rust/Cargo.lock b/app/rust/Cargo.lock index 3f9856f8..89712c41 100644 --- a/app/rust/Cargo.lock +++ b/app/rust/Cargo.lock @@ -81,20 +81,19 @@ dependencies = [ [[package]] name = "android_log-sys" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ecc8056bf6ab9892dcd53216c83d1597487d7dacac16c8df6b877d127df9937" +checksum = "84521a3cf562bc62942e294181d9eef17eb38ceb8c68677bc49f144e4c3d4f8d" [[package]] name = "android_logger" -version = "0.13.3" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c494134f746c14dc653a35a4ea5aca24ac368529da5370ecf41fe0341c35772f" +checksum = "dbb4e440d04be07da1f1bf44fb4495ebd58669372fe0cffa6e48595ac5bd88a3" dependencies = [ "android_log-sys", - "env_logger", + "env_filter", "log", - "once_cell", ] [[package]] @@ -488,12 +487,15 @@ dependencies = [ [[package]] name = "dashmap" -version = "4.0.2" +version = "5.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e77a43b28d0668df09411cb0bc9a8c2adc40f9a048afe863e05fd43251e8e39c" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" dependencies = [ "cfg-if", - "num_cpus", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", ] [[package]] @@ -654,10 +656,10 @@ dependencies = [ ] [[package]] -name = "env_logger" -version = "0.10.1" +name = "env_filter" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece" +checksum = "186e05a59d4c50738528153b83b0b0194d3a29507dfec16eccd4b342903397d0" dependencies = [ "log", "regex", @@ -713,9 +715,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge" -version = "2.7.1" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "131b0bebc810a966ead8541d5911ab4815b1c227e8bdc91a6c21e3b4f69427fb" +checksum = "dde126295b2acc5f0a712e265e91b6fdc0ed38767496483e592ae7134db83725" dependencies = [ "allo-isolate", "android_logger", @@ -743,9 +745,9 @@ dependencies = [ [[package]] name = "flutter_rust_bridge_macros" -version = "2.7.1" +version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2610593cdcdd7073d790f45ece3d336ba86bc90fa5a6eaee2ae9d6721a7d481d" +checksum = "d5f0420326b13675321b194928bb7830043b68cf8b810e1c651285c747abb080" dependencies = [ "hex", "md-5", @@ -941,6 +943,12 @@ dependencies = [ "tracing", ] +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + [[package]] name = "hashbrown" version = "0.15.2" @@ -1243,7 +1251,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.15.2", ] [[package]] @@ -1654,9 +1662,9 @@ dependencies = [ [[package]] name = "oslog" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8343ce955f18e7e68c0207dd0ea776ec453035685395ababd2ea651c569728b3" +checksum = "80d2043d1f61d77cb2f4b1f7b7b2295f40507f5f8e9d1c8bf10a1ca5f97a3969" dependencies = [ "cc", "dashmap", diff --git a/app/rust/Cargo.toml b/app/rust/Cargo.toml index 8bfc5066..c79e0872 100644 --- a/app/rust/Cargo.toml +++ b/app/rust/Cargo.toml @@ -9,7 +9,7 @@ crate-type = ["cdylib", "staticlib"] [dependencies] anyhow = "1.0.95" bytes = "1.9.0" -flutter_rust_bridge = { version = "=2.7.1", features = ["uuid"] } +flutter_rust_bridge = { version = "=2.11.1", features = ["uuid"] } localsend = { path = "../../core", features = ["full"] } tokio = { version = "1.43.0", features = ["full"] } tracing = "0.1.41" diff --git a/app/rust/src/api/webrtc.rs b/app/rust/src/api/webrtc.rs index 93446d99..1f8b08ac 100644 --- a/app/rust/src/api/webrtc.rs +++ b/app/rust/src/api/webrtc.rs @@ -68,18 +68,6 @@ pub async fn connect( }) .await; - tokio::spawn(async move { - let mut interval = time::interval(Duration::from_secs(30 * 60)); - - interval.tick().await; - - loop { - let _ = managed_connection.send_update(info).await; - - interval.tick().await; - } - }); - while let Some(message) = rx.recv().await { let _ = sink.add(message.into()); } diff --git a/app/rust/src/frb_generated.rs b/app/rust/src/frb_generated.rs index 5c87e4f8..c2e0ceb1 100644 --- a/app/rust/src/frb_generated.rs +++ b/app/rust/src/frb_generated.rs @@ -1,5 +1,5 @@ // This file is automatically generated, so please do not edit it. -// @generated by `flutter_rust_bridge`@ 2.7.1. +// @generated by `flutter_rust_bridge`@ 2.11.1. #![allow( non_camel_case_types, @@ -37,8 +37,8 @@ flutter_rust_bridge::frb_generated_boilerplate!( default_rust_opaque = RustOpaqueMoi, default_rust_auto_opaque = RustAutoOpaqueMoi, ); -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.7.1"; -pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = -1025191501; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_VERSION: &str = "2.11.1"; +pub(crate) const FLUTTER_RUST_BRIDGE_CODEGEN_CONTENT_HASH: i32 = 1108156133; // Section: executor @@ -1229,10 +1229,11 @@ fn wire__crate__api__webrtc__connect_impl( let mut deserializer = flutter_rust_bridge::for_generated::SseDeserializer::new(message); let api_sink = >::sse_decode(&mut deserializer); let api_uri = ::sse_decode(&mut deserializer); -let api_info = ::sse_decode(&mut deserializer); +let api_info = ::sse_decode(&mut deserializer); +let api_private_key = ::sse_decode(&mut deserializer); let api_on_connection = decode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException(::sse_decode(&mut deserializer));deserializer.end(); move |context| async move { transform_result_sse::<_, ()>((move || async move { - let output_ok = Result::<_,()>::Ok({ crate::api::webrtc::connect(api_sink, api_uri, api_info, api_on_connection).await; })?; Ok(output_ok) + let output_ok = Result::<_,()>::Ok({ crate::api::webrtc::connect(api_sink, api_uri, api_info, api_private_key, api_on_connection).await; })?; Ok(output_ok) })().await) } }) } @@ -1270,6 +1271,40 @@ fn wire__crate__api__logging__enable_debug_logging_impl( }, ) } +fn wire__crate__api__crypto__generate_key_pair_impl( + port_: flutter_rust_bridge::for_generated::MessagePort, + ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, + rust_vec_len_: i32, + data_len_: i32, +) { + FLUTTER_RUST_BRIDGE_HANDLER.wrap_normal::( + flutter_rust_bridge::for_generated::TaskInfo { + debug_name: "generate_key_pair", + port: Some(port_), + mode: flutter_rust_bridge::for_generated::FfiCallMode::Normal, + }, + move || { + let message = unsafe { + flutter_rust_bridge::for_generated::Dart2RustMessageSse::from_wire( + ptr_, + rust_vec_len_, + data_len_, + ) + }; + let mut deserializer = + flutter_rust_bridge::for_generated::SseDeserializer::new(message); + deserializer.end(); + move |context| { + transform_result_sse::<_, flutter_rust_bridge::for_generated::anyhow::Error>( + (move || { + let output_ok = crate::api::crypto::generate_key_pair()?; + Ok(output_ok) + })(), + ) + } + }, + ) +} fn wire__crate__api__crypto__verify_cert_impl( port_: flutter_rust_bridge::for_generated::MessagePort, ptr_: flutter_rust_bridge::for_generated::PlatformGeneralizedUint8ListPtr, @@ -1766,6 +1801,18 @@ impl SseDecode for isize { } } +impl SseDecode for crate::api::crypto::KeyPair { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_privateKey = ::sse_decode(deserializer); + let mut var_publicKey = ::sse_decode(deserializer); + return crate::api::crypto::KeyPair { + private_key: var_privateKey, + public_key: var_publicKey, + }; + } +} + impl SseDecode for Vec { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -1883,6 +1930,22 @@ impl SseDecode for crate::api::webrtc::PinConfig { } } +impl SseDecode for crate::api::webrtc::ProposingClientInfo { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { + let mut var_alias = ::sse_decode(deserializer); + let mut var_version = ::sse_decode(deserializer); + let mut var_deviceModel = >::sse_decode(deserializer); + let mut var_deviceType = >::sse_decode(deserializer); + return crate::api::webrtc::ProposingClientInfo { + alias: var_alias, + version: var_version, + device_model: var_deviceModel, + device_type: var_deviceType, + }; + } +} + impl SseDecode for crate::api::webrtc::RTCFileError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_decode(deserializer: &mut flutter_rust_bridge::for_generated::SseDeserializer) -> Self { @@ -2163,7 +2226,8 @@ fn pde_ffi_dispatcher_primary_impl( 21 => { wire__crate__api__logging__enable_debug_logging_impl(port, ptr, rust_vec_len, data_len) } - 22 => wire__crate__api__crypto__verify_cert_impl(port, ptr, rust_vec_len, data_len), + 22 => wire__crate__api__crypto__generate_key_pair_impl(port, ptr, rust_vec_len, data_len), + 23 => wire__crate__api__crypto__verify_cert_impl(port, ptr, rust_vec_len, data_len), _ => unreachable!(), } } @@ -2407,6 +2471,24 @@ impl flutter_rust_bridge::IntoIntoDart flutter_rust_bridge::for_generated::DartAbi { + [ + self.private_key.into_into_dart().into_dart(), + self.public_key.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for crate::api::crypto::KeyPair {} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::crypto::KeyPair +{ + fn into_into_dart(self) -> crate::api::crypto::KeyPair { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -2428,6 +2510,29 @@ impl flutter_rust_bridge::IntoIntoDart } } // Codec=Dco (DartCObject based), see doc to use other codecs +impl flutter_rust_bridge::IntoDart for crate::api::webrtc::ProposingClientInfo { + fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { + [ + self.alias.into_into_dart().into_dart(), + self.version.into_into_dart().into_dart(), + self.device_model.into_into_dart().into_dart(), + self.device_type.into_into_dart().into_dart(), + ] + .into_dart() + } +} +impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive + for crate::api::webrtc::ProposingClientInfo +{ +} +impl flutter_rust_bridge::IntoIntoDart + for crate::api::webrtc::ProposingClientInfo +{ + fn into_into_dart(self) -> crate::api::webrtc::ProposingClientInfo { + self + } +} +// Codec=Dco (DartCObject based), see doc to use other codecs impl flutter_rust_bridge::IntoDart for FrbWrapper { fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi { [ @@ -2845,6 +2950,14 @@ impl SseEncode for isize { } } +impl SseEncode for crate::api::crypto::KeyPair { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.private_key, serializer); + ::sse_encode(self.public_key, serializer); + } +} + impl SseEncode for Vec { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -2943,6 +3056,16 @@ impl SseEncode for crate::api::webrtc::PinConfig { } } +impl SseEncode for crate::api::webrtc::ProposingClientInfo { + // Codec=Sse (Serialization based), see doc to use other codecs + fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { + ::sse_encode(self.alias, serializer); + ::sse_encode(self.version, serializer); + >::sse_encode(self.device_model, serializer); + >::sse_encode(self.device_type, serializer); + } +} + impl SseEncode for crate::api::webrtc::RTCFileError { // Codec=Sse (Serialization based), see doc to use other codecs fn sse_encode(self, serializer: &mut flutter_rust_bridge::for_generated::SseSerializer) { @@ -3084,7 +3207,7 @@ impl SseEncode for crate::api::webrtc::WsServerSdpMessage { #[cfg(not(target_family = "wasm"))] mod io { // This file is automatically generated, so please do not edit it. - // @generated by `flutter_rust_bridge`@ 2.7.1. + // @generated by `flutter_rust_bridge`@ 2.11.1. // Section: imports @@ -3100,70 +3223,70 @@ mod io { flutter_rust_bridge::frb_generated_boilerplate_io!(); - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( ptr: *const std::ffi::c_void, ) { MoiArc::>::increment_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection( ptr: *const std::ffi::c_void, ) { MoiArc::>::decrement_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( ptr: *const std::ffi::c_void, ) { MoiArc::>::increment_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver( ptr: *const std::ffi::c_void, ) { MoiArc::>::decrement_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( ptr: *const std::ffi::c_void, ) { MoiArc::>::increment_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender( ptr: *const std::ffi::c_void, ) { MoiArc::>::decrement_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( ptr: *const std::ffi::c_void, ) { MoiArc::>::increment_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController( ptr: *const std::ffi::c_void, ) { MoiArc::>::decrement_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( ptr: *const std::ffi::c_void, ) { MoiArc::>::increment_strong_count(ptr as _); } - #[no_mangle] + #[unsafe(no_mangle)] pub extern "C" fn frbgen_localsend_app_rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController( ptr: *const std::ffi::c_void, ) { @@ -3177,7 +3300,7 @@ pub use io::*; #[cfg(target_family = "wasm")] mod web { // This file is automatically generated, so please do not edit it. - // @generated by `flutter_rust_bridge`@ 2.7.1. + // @generated by `flutter_rust_bridge`@ 2.11.1. // Section: imports diff --git a/app/test/mocks.mocks.dart b/app/test/mocks.mocks.dart index 54b440c0..158c76bd 100644 --- a/app/test/mocks.mocks.dart +++ b/app/test/mocks.mocks.dart @@ -11,7 +11,8 @@ import 'package:flutter/material.dart' as _i8; import 'package:localsend_app/gen/strings.g.dart' as _i10; import 'package:localsend_app/model/persistence/color_mode.dart' as _i9; import 'package:localsend_app/model/persistence/favorite_device.dart' as _i6; -import 'package:localsend_app/model/persistence/receive_history_entry.dart' as _i5; +import 'package:localsend_app/model/persistence/receive_history_entry.dart' + as _i5; import 'package:localsend_app/model/send_mode.dart' as _i11; import 'package:localsend_app/provider/persistence_provider.dart' as _i3; import 'package:mockito/mockito.dart' as _i1; @@ -31,7 +32,8 @@ import 'package:shared_preferences/shared_preferences.dart' as _i13; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -class _FakeStoredSecurityContext_0 extends _i1.SmartFake implements _i2.StoredSecurityContext { +class _FakeStoredSecurityContext_0 extends _i1.SmartFake + implements _i2.StoredSecurityContext { _FakeStoredSecurityContext_0( Object parent, Invocation parentInvocation, @@ -44,7 +46,8 @@ class _FakeStoredSecurityContext_0 extends _i1.SmartFake implements _i2.StoredSe /// A class which mocks [PersistenceService]. /// /// See the documentation for Mockito's code generation for more information. -class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService { +class MockPersistenceService extends _i1.Mock + implements _i3.PersistenceService { @override bool get isFirstAppStart => (super.noSuchMethod( Invocation.getter(#isFirstAppStart), @@ -85,7 +88,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as _i2.StoredSecurityContext); @override - _i4.Future setSecurityContext(_i2.StoredSecurityContext? context) => (super.noSuchMethod( + _i4.Future setSecurityContext(_i2.StoredSecurityContext? context) => + (super.noSuchMethod( Invocation.method( #setSecurityContext, [context], @@ -95,7 +99,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as _i4.Future); @override - _i4.Future setSignalingServers(List? servers) => (super.noSuchMethod( + _i4.Future setSignalingServers(List? servers) => + (super.noSuchMethod( Invocation.method( #setSignalingServers, [servers], @@ -125,7 +130,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as List<_i5.ReceiveHistoryEntry>); @override - _i4.Future setReceiveHistory(List<_i5.ReceiveHistoryEntry>? entries) => (super.noSuchMethod( + _i4.Future setReceiveHistory(List<_i5.ReceiveHistoryEntry>? entries) => + (super.noSuchMethod( Invocation.method( #setReceiveHistory, [entries], @@ -145,7 +151,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as List<_i6.FavoriteDevice>); @override - _i4.Future setFavorites(List<_i6.FavoriteDevice>? entries) => (super.noSuchMethod( + _i4.Future setFavorites(List<_i6.FavoriteDevice>? entries) => + (super.noSuchMethod( Invocation.method( #setFavorites, [entries], @@ -279,7 +286,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as _i4.Future); @override - _i4.Future setNetworkWhitelist(List? whitelist) => (super.noSuchMethod( + _i4.Future setNetworkWhitelist(List? whitelist) => + (super.noSuchMethod( Invocation.method( #setNetworkWhitelist, [whitelist], @@ -289,7 +297,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as _i4.Future); @override - _i4.Future setNetworkBlacklist(List? blacklist) => (super.noSuchMethod( + _i4.Future setNetworkBlacklist(List? blacklist) => + (super.noSuchMethod( Invocation.method( #setNetworkBlacklist, [blacklist], @@ -329,7 +338,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as bool); @override - _i4.Future setShareViaLinkAutoAccept(bool? shareViaLinkAutoAccept) => (super.noSuchMethod( + _i4.Future setShareViaLinkAutoAccept(bool? shareViaLinkAutoAccept) => + (super.noSuchMethod( Invocation.method( #setShareViaLinkAutoAccept, [shareViaLinkAutoAccept], @@ -431,7 +441,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as bool); @override - _i4.Future setAdvancedSettingsEnabled(bool? isEnabled) => (super.noSuchMethod( + _i4.Future setAdvancedSettingsEnabled(bool? isEnabled) => + (super.noSuchMethod( Invocation.method( #setAdvancedSettingsEnabled, [isEnabled], @@ -471,7 +482,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as bool); @override - _i4.Future setQuickSaveFromFavorites(bool? quickSaveFromFavorites) => (super.noSuchMethod( + _i4.Future setQuickSaveFromFavorites(bool? quickSaveFromFavorites) => + (super.noSuchMethod( Invocation.method( #setQuickSaveFromFavorites, [quickSaveFromFavorites], @@ -521,7 +533,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as bool); @override - _i4.Future setMinimizeToTray(bool? minimizeToTray) => (super.noSuchMethod( + _i4.Future setMinimizeToTray(bool? minimizeToTray) => + (super.noSuchMethod( Invocation.method( #setMinimizeToTray, [minimizeToTray], @@ -611,7 +624,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as _i4.Future); @override - _i4.Future setSaveWindowPlacement(bool? savePlacement) => (super.noSuchMethod( + _i4.Future setSaveWindowPlacement(bool? savePlacement) => + (super.noSuchMethod( Invocation.method( #setSaveWindowPlacement, [savePlacement], @@ -631,7 +645,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as bool); @override - _i4.Future setEnableAnimations(bool? enableAnimations) => (super.noSuchMethod( + _i4.Future setEnableAnimations(bool? enableAnimations) => + (super.noSuchMethod( Invocation.method( #setEnableAnimations, [enableAnimations], @@ -651,7 +666,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService ) as bool); @override - _i4.Future setDeviceType(_i12.DeviceType? deviceType) => (super.noSuchMethod( + _i4.Future setDeviceType(_i12.DeviceType? deviceType) => + (super.noSuchMethod( Invocation.method( #setDeviceType, [deviceType],