mirror of
https://github.com/localsend/localsend.git
synced 2026-06-23 04:10:07 +00:00
wip
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -24,11 +24,13 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {
|
||||
static String _$name(CrossFile v) => v.name;
|
||||
static const Field<CrossFile, String> _f$name = Field('name', _$name);
|
||||
static FileType _$fileType(CrossFile v) => v.fileType;
|
||||
static const Field<CrossFile, FileType> _f$fileType = Field('fileType', _$fileType);
|
||||
static const Field<CrossFile, FileType> _f$fileType =
|
||||
Field('fileType', _$fileType);
|
||||
static int _$size(CrossFile v) => v.size;
|
||||
static const Field<CrossFile, int> _f$size = Field('size', _$size);
|
||||
static Uint8List? _$thumbnail(CrossFile v) => v.thumbnail;
|
||||
static const Field<CrossFile, Uint8List> _f$thumbnail = Field('thumbnail', _$thumbnail);
|
||||
static const Field<CrossFile, Uint8List> _f$thumbnail =
|
||||
Field('thumbnail', _$thumbnail);
|
||||
static AssetEntity? _$asset(CrossFile v) => v.asset;
|
||||
static const Field<CrossFile, AssetEntity> _f$asset = Field('asset', _$asset);
|
||||
static String? _$path(CrossFile v) => v.path;
|
||||
@@ -36,9 +38,11 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {
|
||||
static List<int>? _$bytes(CrossFile v) => v.bytes;
|
||||
static const Field<CrossFile, List<int>> _f$bytes = Field('bytes', _$bytes);
|
||||
static DateTime? _$lastModified(CrossFile v) => v.lastModified;
|
||||
static const Field<CrossFile, DateTime> _f$lastModified = Field('lastModified', _$lastModified);
|
||||
static const Field<CrossFile, DateTime> _f$lastModified =
|
||||
Field('lastModified', _$lastModified);
|
||||
static DateTime? _$lastAccessed(CrossFile v) => v.lastAccessed;
|
||||
static const Field<CrossFile, DateTime> _f$lastAccessed = Field('lastAccessed', _$lastAccessed);
|
||||
static const Field<CrossFile, DateTime> _f$lastAccessed =
|
||||
Field('lastAccessed', _$lastAccessed);
|
||||
|
||||
@override
|
||||
final MappableFields<CrossFile> fields = const {
|
||||
@@ -80,22 +84,27 @@ class CrossFileMapper extends ClassMapperBase<CrossFile> {
|
||||
|
||||
mixin CrossFileMappable {
|
||||
String serialize() {
|
||||
return CrossFileMapper.ensureInitialized().encodeJson<CrossFile>(this as CrossFile);
|
||||
return CrossFileMapper.ensureInitialized()
|
||||
.encodeJson<CrossFile>(this as CrossFile);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return CrossFileMapper.ensureInitialized().encodeMap<CrossFile>(this as CrossFile);
|
||||
return CrossFileMapper.ensureInitialized()
|
||||
.encodeMap<CrossFile>(this as CrossFile);
|
||||
}
|
||||
|
||||
CrossFileCopyWith<CrossFile, CrossFile, CrossFile> get copyWith => _CrossFileCopyWithImpl(this as CrossFile, $identity, $identity);
|
||||
CrossFileCopyWith<CrossFile, CrossFile, CrossFile> 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<CrossFile> $mapper = CrossFileMapper.ensureInitialized();
|
||||
late final ClassMapperBase<CrossFile> $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);
|
||||
}
|
||||
|
||||
@@ -21,7 +21,8 @@ class LogEntryMapper extends ClassMapperBase<LogEntry> {
|
||||
final String id = 'LogEntry';
|
||||
|
||||
static DateTime _$timestamp(LogEntry v) => v.timestamp;
|
||||
static const Field<LogEntry, DateTime> _f$timestamp = Field('timestamp', _$timestamp);
|
||||
static const Field<LogEntry, DateTime> _f$timestamp =
|
||||
Field('timestamp', _$timestamp);
|
||||
static String _$log(LogEntry v) => v.log;
|
||||
static const Field<LogEntry, String> _f$log = Field('log', _$log);
|
||||
|
||||
@@ -49,14 +50,17 @@ class LogEntryMapper extends ClassMapperBase<LogEntry> {
|
||||
|
||||
mixin LogEntryMappable {
|
||||
String serialize() {
|
||||
return LogEntryMapper.ensureInitialized().encodeJson<LogEntry>(this as LogEntry);
|
||||
return LogEntryMapper.ensureInitialized()
|
||||
.encodeJson<LogEntry>(this as LogEntry);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return LogEntryMapper.ensureInitialized().encodeMap<LogEntry>(this as LogEntry);
|
||||
return LogEntryMapper.ensureInitialized()
|
||||
.encodeMap<LogEntry>(this as LogEntry);
|
||||
}
|
||||
|
||||
LogEntryCopyWith<LogEntry, LogEntry, LogEntry> get copyWith => _LogEntryCopyWithImpl(this as LogEntry, $identity, $identity);
|
||||
LogEntryCopyWith<LogEntry, LogEntry, LogEntry> 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<LogEntry> $mapper = LogEntryMapper.ensureInitialized();
|
||||
late final ClassMapperBase<LogEntry> $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);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,8 @@ class FavoriteDeviceMapper extends ClassMapperBase<FavoriteDevice> {
|
||||
static String _$id(FavoriteDevice v) => v.id;
|
||||
static const Field<FavoriteDevice, String> _f$id = Field('id', _$id);
|
||||
static String _$fingerprint(FavoriteDevice v) => v.fingerprint;
|
||||
static const Field<FavoriteDevice, String> _f$fingerprint = Field('fingerprint', _$fingerprint);
|
||||
static const Field<FavoriteDevice, String> _f$fingerprint =
|
||||
Field('fingerprint', _$fingerprint);
|
||||
static String _$ip(FavoriteDevice v) => v.ip;
|
||||
static const Field<FavoriteDevice, String> _f$ip = Field('ip', _$ip);
|
||||
static int _$port(FavoriteDevice v) => v.port;
|
||||
@@ -31,7 +32,8 @@ class FavoriteDeviceMapper extends ClassMapperBase<FavoriteDevice> {
|
||||
static String _$alias(FavoriteDevice v) => v.alias;
|
||||
static const Field<FavoriteDevice, String> _f$alias = Field('alias', _$alias);
|
||||
static bool _$customAlias(FavoriteDevice v) => v.customAlias;
|
||||
static const Field<FavoriteDevice, bool> _f$customAlias = Field('customAlias', _$customAlias, opt: true, def: false);
|
||||
static const Field<FavoriteDevice, bool> _f$customAlias =
|
||||
Field('customAlias', _$customAlias, opt: true, def: false);
|
||||
|
||||
@override
|
||||
final MappableFields<FavoriteDevice> fields = const {
|
||||
@@ -67,48 +69,73 @@ class FavoriteDeviceMapper extends ClassMapperBase<FavoriteDevice> {
|
||||
|
||||
mixin FavoriteDeviceMappable {
|
||||
String serialize() {
|
||||
return FavoriteDeviceMapper.ensureInitialized().encodeJson<FavoriteDevice>(this as FavoriteDevice);
|
||||
return FavoriteDeviceMapper.ensureInitialized()
|
||||
.encodeJson<FavoriteDevice>(this as FavoriteDevice);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return FavoriteDeviceMapper.ensureInitialized().encodeMap<FavoriteDevice>(this as FavoriteDevice);
|
||||
return FavoriteDeviceMapper.ensureInitialized()
|
||||
.encodeMap<FavoriteDevice>(this as FavoriteDevice);
|
||||
}
|
||||
|
||||
FavoriteDeviceCopyWith<FavoriteDevice, FavoriteDevice, FavoriteDevice> get copyWith =>
|
||||
_FavoriteDeviceCopyWithImpl(this as FavoriteDevice, $identity, $identity);
|
||||
FavoriteDeviceCopyWith<FavoriteDevice, FavoriteDevice, FavoriteDevice>
|
||||
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<FavoriteDevice> $mapper = FavoriteDeviceMapper.ensureInitialized();
|
||||
late final ClassMapperBase<FavoriteDevice> $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);
|
||||
}
|
||||
|
||||
@@ -24,21 +24,29 @@ class ReceiveHistoryEntryMapper extends ClassMapperBase<ReceiveHistoryEntry> {
|
||||
static String _$id(ReceiveHistoryEntry v) => v.id;
|
||||
static const Field<ReceiveHistoryEntry, String> _f$id = Field('id', _$id);
|
||||
static String _$fileName(ReceiveHistoryEntry v) => v.fileName;
|
||||
static const Field<ReceiveHistoryEntry, String> _f$fileName = Field('fileName', _$fileName);
|
||||
static const Field<ReceiveHistoryEntry, String> _f$fileName =
|
||||
Field('fileName', _$fileName);
|
||||
static FileType _$fileType(ReceiveHistoryEntry v) => v.fileType;
|
||||
static const Field<ReceiveHistoryEntry, FileType> _f$fileType = Field('fileType', _$fileType);
|
||||
static const Field<ReceiveHistoryEntry, FileType> _f$fileType =
|
||||
Field('fileType', _$fileType);
|
||||
static String? _$path(ReceiveHistoryEntry v) => v.path;
|
||||
static const Field<ReceiveHistoryEntry, String> _f$path = Field('path', _$path);
|
||||
static const Field<ReceiveHistoryEntry, String> _f$path =
|
||||
Field('path', _$path);
|
||||
static bool _$savedToGallery(ReceiveHistoryEntry v) => v.savedToGallery;
|
||||
static const Field<ReceiveHistoryEntry, bool> _f$savedToGallery = Field('savedToGallery', _$savedToGallery);
|
||||
static const Field<ReceiveHistoryEntry, bool> _f$savedToGallery =
|
||||
Field('savedToGallery', _$savedToGallery);
|
||||
static bool _$isMessage(ReceiveHistoryEntry v) => v.isMessage;
|
||||
static const Field<ReceiveHistoryEntry, bool> _f$isMessage = Field('isMessage', _$isMessage, hook: IsMessageHook());
|
||||
static const Field<ReceiveHistoryEntry, bool> _f$isMessage =
|
||||
Field('isMessage', _$isMessage, hook: IsMessageHook());
|
||||
static int _$fileSize(ReceiveHistoryEntry v) => v.fileSize;
|
||||
static const Field<ReceiveHistoryEntry, int> _f$fileSize = Field('fileSize', _$fileSize);
|
||||
static const Field<ReceiveHistoryEntry, int> _f$fileSize =
|
||||
Field('fileSize', _$fileSize);
|
||||
static String _$senderAlias(ReceiveHistoryEntry v) => v.senderAlias;
|
||||
static const Field<ReceiveHistoryEntry, String> _f$senderAlias = Field('senderAlias', _$senderAlias);
|
||||
static const Field<ReceiveHistoryEntry, String> _f$senderAlias =
|
||||
Field('senderAlias', _$senderAlias);
|
||||
static DateTime _$timestamp(ReceiveHistoryEntry v) => v.timestamp;
|
||||
static const Field<ReceiveHistoryEntry, DateTime> _f$timestamp = Field('timestamp', _$timestamp);
|
||||
static const Field<ReceiveHistoryEntry, DateTime> _f$timestamp =
|
||||
Field('timestamp', _$timestamp);
|
||||
|
||||
@override
|
||||
final MappableFields<ReceiveHistoryEntry> fields = const {
|
||||
@@ -80,37 +88,47 @@ class ReceiveHistoryEntryMapper extends ClassMapperBase<ReceiveHistoryEntry> {
|
||||
|
||||
mixin ReceiveHistoryEntryMappable {
|
||||
String serialize() {
|
||||
return ReceiveHistoryEntryMapper.ensureInitialized().encodeJson<ReceiveHistoryEntry>(this as ReceiveHistoryEntry);
|
||||
return ReceiveHistoryEntryMapper.ensureInitialized()
|
||||
.encodeJson<ReceiveHistoryEntry>(this as ReceiveHistoryEntry);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return ReceiveHistoryEntryMapper.ensureInitialized().encodeMap<ReceiveHistoryEntry>(this as ReceiveHistoryEntry);
|
||||
return ReceiveHistoryEntryMapper.ensureInitialized()
|
||||
.encodeMap<ReceiveHistoryEntry>(this as ReceiveHistoryEntry);
|
||||
}
|
||||
|
||||
ReceiveHistoryEntryCopyWith<ReceiveHistoryEntry, ReceiveHistoryEntry, ReceiveHistoryEntry> get copyWith =>
|
||||
_ReceiveHistoryEntryCopyWithImpl(this as ReceiveHistoryEntry, $identity, $identity);
|
||||
ReceiveHistoryEntryCopyWith<ReceiveHistoryEntry, ReceiveHistoryEntry,
|
||||
ReceiveHistoryEntry>
|
||||
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<ReceiveHistoryEntry> $mapper = ReceiveHistoryEntryMapper.ensureInitialized();
|
||||
late final ClassMapperBase<ReceiveHistoryEntry> $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);
|
||||
}
|
||||
|
||||
@@ -21,14 +21,20 @@ class NearbyDevicesStateMapper extends ClassMapperBase<NearbyDevicesState> {
|
||||
@override
|
||||
final String id = 'NearbyDevicesState';
|
||||
|
||||
static bool _$runningFavoriteScan(NearbyDevicesState v) => v.runningFavoriteScan;
|
||||
static const Field<NearbyDevicesState, bool> _f$runningFavoriteScan = Field('runningFavoriteScan', _$runningFavoriteScan);
|
||||
static bool _$runningFavoriteScan(NearbyDevicesState v) =>
|
||||
v.runningFavoriteScan;
|
||||
static const Field<NearbyDevicesState, bool> _f$runningFavoriteScan =
|
||||
Field('runningFavoriteScan', _$runningFavoriteScan);
|
||||
static Set<String> _$runningIps(NearbyDevicesState v) => v.runningIps;
|
||||
static const Field<NearbyDevicesState, Set<String>> _f$runningIps = Field('runningIps', _$runningIps);
|
||||
static const Field<NearbyDevicesState, Set<String>> _f$runningIps =
|
||||
Field('runningIps', _$runningIps);
|
||||
static Map<String, Device> _$devices(NearbyDevicesState v) => v.devices;
|
||||
static const Field<NearbyDevicesState, Map<String, Device>> _f$devices = Field('devices', _$devices);
|
||||
static Map<String, Set<Device>> _$signalingDevices(NearbyDevicesState v) => v.signalingDevices;
|
||||
static const Field<NearbyDevicesState, Map<String, Set<Device>>> _f$signalingDevices = Field('signalingDevices', _$signalingDevices);
|
||||
static const Field<NearbyDevicesState, Map<String, Device>> _f$devices =
|
||||
Field('devices', _$devices);
|
||||
static Map<String, Set<Device>> _$signalingDevices(NearbyDevicesState v) =>
|
||||
v.signalingDevices;
|
||||
static const Field<NearbyDevicesState, Map<String, Set<Device>>>
|
||||
_f$signalingDevices = Field('signalingDevices', _$signalingDevices);
|
||||
|
||||
@override
|
||||
final MappableFields<NearbyDevicesState> fields = const {
|
||||
@@ -60,71 +66,103 @@ class NearbyDevicesStateMapper extends ClassMapperBase<NearbyDevicesState> {
|
||||
|
||||
mixin NearbyDevicesStateMappable {
|
||||
String serialize() {
|
||||
return NearbyDevicesStateMapper.ensureInitialized().encodeJson<NearbyDevicesState>(this as NearbyDevicesState);
|
||||
return NearbyDevicesStateMapper.ensureInitialized()
|
||||
.encodeJson<NearbyDevicesState>(this as NearbyDevicesState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return NearbyDevicesStateMapper.ensureInitialized().encodeMap<NearbyDevicesState>(this as NearbyDevicesState);
|
||||
return NearbyDevicesStateMapper.ensureInitialized()
|
||||
.encodeMap<NearbyDevicesState>(this as NearbyDevicesState);
|
||||
}
|
||||
|
||||
NearbyDevicesStateCopyWith<NearbyDevicesState, NearbyDevicesState, NearbyDevicesState> get copyWith =>
|
||||
_NearbyDevicesStateCopyWithImpl(this as NearbyDevicesState, $identity, $identity);
|
||||
NearbyDevicesStateCopyWith<NearbyDevicesState, NearbyDevicesState,
|
||||
NearbyDevicesState>
|
||||
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<Device>, ObjectCopyWith<$R, Set<Device>, Set<Device>>> get signalingDevices;
|
||||
$R call({bool? runningFavoriteScan, Set<String>? runningIps, Map<String, Device>? devices, Map<String, Set<Device>>? 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<Device>,
|
||||
ObjectCopyWith<$R, Set<Device>, Set<Device>>> get signalingDevices;
|
||||
$R call(
|
||||
{bool? runningFavoriteScan,
|
||||
Set<String>? runningIps,
|
||||
Map<String, Device>? devices,
|
||||
Map<String, Set<Device>>? 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<NearbyDevicesState> $mapper = NearbyDevicesStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<NearbyDevicesState> $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<Device>, ObjectCopyWith<$R, Set<Device>, Set<Device>>> get signalingDevices =>
|
||||
MapCopyWith($value.signalingDevices, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(signalingDevices: v));
|
||||
MapCopyWith<$R, String, Set<Device>,
|
||||
ObjectCopyWith<$R, Set<Device>, Set<Device>>>
|
||||
get signalingDevices => MapCopyWith(
|
||||
$value.signalingDevices,
|
||||
(v, t) => ObjectCopyWith(v, $identity, t),
|
||||
(v) => call(signalingDevices: v));
|
||||
@override
|
||||
$R call({bool? runningFavoriteScan, Set<String>? runningIps, Map<String, Device>? devices, Map<String, Set<Device>>? signalingDevices}) =>
|
||||
$R call(
|
||||
{bool? runningFavoriteScan,
|
||||
Set<String>? runningIps,
|
||||
Map<String, Device>? devices,
|
||||
Map<String, Set<Device>>? 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);
|
||||
}
|
||||
|
||||
@@ -21,9 +21,11 @@ class NetworkStateMapper extends ClassMapperBase<NetworkState> {
|
||||
final String id = 'NetworkState';
|
||||
|
||||
static List<String> _$localIps(NetworkState v) => v.localIps;
|
||||
static const Field<NetworkState, List<String>> _f$localIps = Field('localIps', _$localIps);
|
||||
static const Field<NetworkState, List<String>> _f$localIps =
|
||||
Field('localIps', _$localIps);
|
||||
static bool _$initialized(NetworkState v) => v.initialized;
|
||||
static const Field<NetworkState, bool> _f$initialized = Field('initialized', _$initialized);
|
||||
static const Field<NetworkState, bool> _f$initialized =
|
||||
Field('initialized', _$initialized);
|
||||
|
||||
@override
|
||||
final MappableFields<NetworkState> fields = const {
|
||||
@@ -32,7 +34,8 @@ class NetworkStateMapper extends ClassMapperBase<NetworkState> {
|
||||
};
|
||||
|
||||
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<NetworkState> {
|
||||
|
||||
mixin NetworkStateMappable {
|
||||
String serialize() {
|
||||
return NetworkStateMapper.ensureInitialized().encodeJson<NetworkState>(this as NetworkState);
|
||||
return NetworkStateMapper.ensureInitialized()
|
||||
.encodeJson<NetworkState>(this as NetworkState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return NetworkStateMapper.ensureInitialized().encodeMap<NetworkState>(this as NetworkState);
|
||||
return NetworkStateMapper.ensureInitialized()
|
||||
.encodeMap<NetworkState>(this as NetworkState);
|
||||
}
|
||||
|
||||
NetworkStateCopyWith<NetworkState, NetworkState, NetworkState> 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<String>? 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<NetworkState> $mapper = NetworkStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<NetworkState> $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<String>? 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);
|
||||
}
|
||||
|
||||
@@ -21,11 +21,14 @@ class PurchaseStateMapper extends ClassMapperBase<PurchaseState> {
|
||||
final String id = 'PurchaseState';
|
||||
|
||||
static Map<PurchaseItem, String> _$prices(PurchaseState v) => v.prices;
|
||||
static const Field<PurchaseState, Map<PurchaseItem, String>> _f$prices = Field('prices', _$prices);
|
||||
static const Field<PurchaseState, Map<PurchaseItem, String>> _f$prices =
|
||||
Field('prices', _$prices);
|
||||
static Set<PurchaseItem> _$purchases(PurchaseState v) => v.purchases;
|
||||
static const Field<PurchaseState, Set<PurchaseItem>> _f$purchases = Field('purchases', _$purchases);
|
||||
static const Field<PurchaseState, Set<PurchaseItem>> _f$purchases =
|
||||
Field('purchases', _$purchases);
|
||||
static bool _$pending(PurchaseState v) => v.pending;
|
||||
static const Field<PurchaseState, bool> _f$pending = Field('pending', _$pending);
|
||||
static const Field<PurchaseState, bool> _f$pending =
|
||||
Field('pending', _$pending);
|
||||
|
||||
@override
|
||||
final MappableFields<PurchaseState> fields = const {
|
||||
@@ -35,7 +38,10 @@ class PurchaseStateMapper extends ClassMapperBase<PurchaseState> {
|
||||
};
|
||||
|
||||
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<PurchaseState> {
|
||||
|
||||
mixin PurchaseStateMappable {
|
||||
String serialize() {
|
||||
return PurchaseStateMapper.ensureInitialized().encodeJson<PurchaseState>(this as PurchaseState);
|
||||
return PurchaseStateMapper.ensureInitialized()
|
||||
.encodeJson<PurchaseState>(this as PurchaseState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return PurchaseStateMapper.ensureInitialized().encodeMap<PurchaseState>(this as PurchaseState);
|
||||
return PurchaseStateMapper.ensureInitialized()
|
||||
.encodeMap<PurchaseState>(this as PurchaseState);
|
||||
}
|
||||
|
||||
PurchaseStateCopyWith<PurchaseState, PurchaseState, PurchaseState> get copyWith =>
|
||||
_PurchaseStateCopyWithImpl(this as PurchaseState, $identity, $identity);
|
||||
PurchaseStateCopyWith<PurchaseState, PurchaseState, PurchaseState>
|
||||
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<PurchaseItem, String>? prices, Set<PurchaseItem>? 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<PurchaseItem, String>? prices,
|
||||
Set<PurchaseItem>? 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<PurchaseState> $mapper = PurchaseStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<PurchaseState> $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<PurchaseItem, String>? prices, Set<PurchaseItem>? purchases, bool? pending}) => $apply(
|
||||
FieldCopyWithData({if (prices != null) #prices: prices, if (purchases != null) #purchases: purchases, if (pending != null) #pending: pending}));
|
||||
$R call(
|
||||
{Map<PurchaseItem, String>? prices,
|
||||
Set<PurchaseItem>? 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);
|
||||
}
|
||||
|
||||
@@ -23,25 +23,36 @@ class SendSessionStateMapper extends ClassMapperBase<SendSessionState> {
|
||||
final String id = 'SendSessionState';
|
||||
|
||||
static String _$sessionId(SendSessionState v) => v.sessionId;
|
||||
static const Field<SendSessionState, String> _f$sessionId = Field('sessionId', _$sessionId);
|
||||
static const Field<SendSessionState, String> _f$sessionId =
|
||||
Field('sessionId', _$sessionId);
|
||||
static String? _$remoteSessionId(SendSessionState v) => v.remoteSessionId;
|
||||
static const Field<SendSessionState, String> _f$remoteSessionId = Field('remoteSessionId', _$remoteSessionId);
|
||||
static const Field<SendSessionState, String> _f$remoteSessionId =
|
||||
Field('remoteSessionId', _$remoteSessionId);
|
||||
static bool _$background(SendSessionState v) => v.background;
|
||||
static const Field<SendSessionState, bool> _f$background = Field('background', _$background);
|
||||
static const Field<SendSessionState, bool> _f$background =
|
||||
Field('background', _$background);
|
||||
static SessionStatus _$status(SendSessionState v) => v.status;
|
||||
static const Field<SendSessionState, SessionStatus> _f$status = Field('status', _$status);
|
||||
static const Field<SendSessionState, SessionStatus> _f$status =
|
||||
Field('status', _$status);
|
||||
static Device _$target(SendSessionState v) => v.target;
|
||||
static const Field<SendSessionState, Device> _f$target = Field('target', _$target);
|
||||
static const Field<SendSessionState, Device> _f$target =
|
||||
Field('target', _$target);
|
||||
static Map<String, SendingFile> _$files(SendSessionState v) => v.files;
|
||||
static const Field<SendSessionState, Map<String, SendingFile>> _f$files = Field('files', _$files);
|
||||
static const Field<SendSessionState, Map<String, SendingFile>> _f$files =
|
||||
Field('files', _$files);
|
||||
static int? _$startTime(SendSessionState v) => v.startTime;
|
||||
static const Field<SendSessionState, int> _f$startTime = Field('startTime', _$startTime);
|
||||
static const Field<SendSessionState, int> _f$startTime =
|
||||
Field('startTime', _$startTime);
|
||||
static int? _$endTime(SendSessionState v) => v.endTime;
|
||||
static const Field<SendSessionState, int> _f$endTime = Field('endTime', _$endTime);
|
||||
static List<SendingTask>? _$sendingTasks(SendSessionState v) => v.sendingTasks;
|
||||
static const Field<SendSessionState, List<SendingTask>> _f$sendingTasks = Field('sendingTasks', _$sendingTasks);
|
||||
static const Field<SendSessionState, int> _f$endTime =
|
||||
Field('endTime', _$endTime);
|
||||
static List<SendingTask>? _$sendingTasks(SendSessionState v) =>
|
||||
v.sendingTasks;
|
||||
static const Field<SendSessionState, List<SendingTask>> _f$sendingTasks =
|
||||
Field('sendingTasks', _$sendingTasks);
|
||||
static String? _$errorMessage(SendSessionState v) => v.errorMessage;
|
||||
static const Field<SendSessionState, String> _f$errorMessage = Field('errorMessage', _$errorMessage);
|
||||
static const Field<SendSessionState, String> _f$errorMessage =
|
||||
Field('errorMessage', _$errorMessage);
|
||||
|
||||
@override
|
||||
final MappableFields<SendSessionState> fields = const {
|
||||
@@ -85,39 +96,51 @@ class SendSessionStateMapper extends ClassMapperBase<SendSessionState> {
|
||||
|
||||
mixin SendSessionStateMappable {
|
||||
String serialize() {
|
||||
return SendSessionStateMapper.ensureInitialized().encodeJson<SendSessionState>(this as SendSessionState);
|
||||
return SendSessionStateMapper.ensureInitialized()
|
||||
.encodeJson<SendSessionState>(this as SendSessionState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return SendSessionStateMapper.ensureInitialized().encodeMap<SendSessionState>(this as SendSessionState);
|
||||
return SendSessionStateMapper.ensureInitialized()
|
||||
.encodeMap<SendSessionState>(this as SendSessionState);
|
||||
}
|
||||
|
||||
SendSessionStateCopyWith<SendSessionState, SendSessionState, SendSessionState> get copyWith =>
|
||||
_SendSessionStateCopyWithImpl(this as SendSessionState, $identity, $identity);
|
||||
SendSessionStateCopyWith<SendSessionState, SendSessionState, SendSessionState>
|
||||
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<SendingTask>? 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<SendSessionState> $mapper = SendSessionStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<SendSessionState> $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);
|
||||
}
|
||||
|
||||
@@ -23,19 +23,23 @@ class SendingFileMapper extends ClassMapperBase<SendingFile> {
|
||||
static FileDto _$file(SendingFile v) => v.file;
|
||||
static const Field<SendingFile, FileDto> _f$file = Field('file', _$file);
|
||||
static FileStatus _$status(SendingFile v) => v.status;
|
||||
static const Field<SendingFile, FileStatus> _f$status = Field('status', _$status);
|
||||
static const Field<SendingFile, FileStatus> _f$status =
|
||||
Field('status', _$status);
|
||||
static String? _$token(SendingFile v) => v.token;
|
||||
static const Field<SendingFile, String> _f$token = Field('token', _$token);
|
||||
static Uint8List? _$thumbnail(SendingFile v) => v.thumbnail;
|
||||
static const Field<SendingFile, Uint8List> _f$thumbnail = Field('thumbnail', _$thumbnail);
|
||||
static const Field<SendingFile, Uint8List> _f$thumbnail =
|
||||
Field('thumbnail', _$thumbnail);
|
||||
static AssetEntity? _$asset(SendingFile v) => v.asset;
|
||||
static const Field<SendingFile, AssetEntity> _f$asset = Field('asset', _$asset);
|
||||
static const Field<SendingFile, AssetEntity> _f$asset =
|
||||
Field('asset', _$asset);
|
||||
static String? _$path(SendingFile v) => v.path;
|
||||
static const Field<SendingFile, String> _f$path = Field('path', _$path);
|
||||
static List<int>? _$bytes(SendingFile v) => v.bytes;
|
||||
static const Field<SendingFile, List<int>> _f$bytes = Field('bytes', _$bytes);
|
||||
static String? _$errorMessage(SendingFile v) => v.errorMessage;
|
||||
static const Field<SendingFile, String> _f$errorMessage = Field('errorMessage', _$errorMessage);
|
||||
static const Field<SendingFile, String> _f$errorMessage =
|
||||
Field('errorMessage', _$errorMessage);
|
||||
|
||||
@override
|
||||
final MappableFields<SendingFile> fields = const {
|
||||
@@ -75,22 +79,27 @@ class SendingFileMapper extends ClassMapperBase<SendingFile> {
|
||||
|
||||
mixin SendingFileMappable {
|
||||
String serialize() {
|
||||
return SendingFileMapper.ensureInitialized().encodeJson<SendingFile>(this as SendingFile);
|
||||
return SendingFileMapper.ensureInitialized()
|
||||
.encodeJson<SendingFile>(this as SendingFile);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return SendingFileMapper.ensureInitialized().encodeMap<SendingFile>(this as SendingFile);
|
||||
return SendingFileMapper.ensureInitialized()
|
||||
.encodeMap<SendingFile>(this as SendingFile);
|
||||
}
|
||||
|
||||
SendingFileCopyWith<SendingFile, SendingFile, SendingFile> get copyWith => _SendingFileCopyWithImpl(this as SendingFile, $identity, $identity);
|
||||
SendingFileCopyWith<SendingFile, SendingFile, SendingFile> 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<SendingFile> $mapper = SendingFileMapper.ensureInitialized();
|
||||
late final ClassMapperBase<SendingFile> $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);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,8 @@ class WebSendFileMapper extends ClassMapperBase<WebSendFile> {
|
||||
static FileDto _$file(WebSendFile v) => v.file;
|
||||
static const Field<WebSendFile, FileDto> _f$file = Field('file', _$file);
|
||||
static AssetEntity? _$asset(WebSendFile v) => v.asset;
|
||||
static const Field<WebSendFile, AssetEntity> _f$asset = Field('asset', _$asset);
|
||||
static const Field<WebSendFile, AssetEntity> _f$asset =
|
||||
Field('asset', _$asset);
|
||||
static String? _$path(WebSendFile v) => v.path;
|
||||
static const Field<WebSendFile, String> _f$path = Field('path', _$path);
|
||||
static List<int>? _$bytes(WebSendFile v) => v.bytes;
|
||||
@@ -38,7 +39,11 @@ class WebSendFileMapper extends ClassMapperBase<WebSendFile> {
|
||||
};
|
||||
|
||||
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<WebSendFile> {
|
||||
|
||||
mixin WebSendFileMappable {
|
||||
String serialize() {
|
||||
return WebSendFileMapper.ensureInitialized().encodeJson<WebSendFile>(this as WebSendFile);
|
||||
return WebSendFileMapper.ensureInitialized()
|
||||
.encodeJson<WebSendFile>(this as WebSendFile);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return WebSendFileMapper.ensureInitialized().encodeMap<WebSendFile>(this as WebSendFile);
|
||||
return WebSendFileMapper.ensureInitialized()
|
||||
.encodeMap<WebSendFile>(this as WebSendFile);
|
||||
}
|
||||
|
||||
WebSendFileCopyWith<WebSendFile, WebSendFile, WebSendFile> get copyWith => _WebSendFileCopyWithImpl(this as WebSendFile, $identity, $identity);
|
||||
WebSendFileCopyWith<WebSendFile, WebSendFile, WebSendFile> 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<int>? 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<WebSendFile> $mapper = WebSendFileMapper.ensureInitialized();
|
||||
late final ClassMapperBase<WebSendFile> $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);
|
||||
}
|
||||
|
||||
@@ -21,13 +21,17 @@ class WebSendSessionMapper extends ClassMapperBase<WebSendSession> {
|
||||
final String id = 'WebSendSession';
|
||||
|
||||
static String _$sessionId(WebSendSession v) => v.sessionId;
|
||||
static const Field<WebSendSession, String> _f$sessionId = Field('sessionId', _$sessionId);
|
||||
static StreamController<bool>? _$responseHandler(WebSendSession v) => v.responseHandler;
|
||||
static const Field<WebSendSession, StreamController<bool>> _f$responseHandler = Field('responseHandler', _$responseHandler);
|
||||
static const Field<WebSendSession, String> _f$sessionId =
|
||||
Field('sessionId', _$sessionId);
|
||||
static StreamController<bool>? _$responseHandler(WebSendSession v) =>
|
||||
v.responseHandler;
|
||||
static const Field<WebSendSession, StreamController<bool>>
|
||||
_f$responseHandler = Field('responseHandler', _$responseHandler);
|
||||
static String _$ip(WebSendSession v) => v.ip;
|
||||
static const Field<WebSendSession, String> _f$ip = Field('ip', _$ip);
|
||||
static String _$deviceInfo(WebSendSession v) => v.deviceInfo;
|
||||
static const Field<WebSendSession, String> _f$deviceInfo = Field('deviceInfo', _$deviceInfo);
|
||||
static const Field<WebSendSession, String> _f$deviceInfo =
|
||||
Field('deviceInfo', _$deviceInfo);
|
||||
|
||||
@override
|
||||
final MappableFields<WebSendSession> fields = const {
|
||||
@@ -39,7 +43,10 @@ class WebSendSessionMapper extends ClassMapperBase<WebSendSession> {
|
||||
|
||||
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<WebSendSession> {
|
||||
|
||||
mixin WebSendSessionMappable {
|
||||
String serialize() {
|
||||
return WebSendSessionMapper.ensureInitialized().encodeJson<WebSendSession>(this as WebSendSession);
|
||||
return WebSendSessionMapper.ensureInitialized()
|
||||
.encodeJson<WebSendSession>(this as WebSendSession);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return WebSendSessionMapper.ensureInitialized().encodeMap<WebSendSession>(this as WebSendSession);
|
||||
return WebSendSessionMapper.ensureInitialized()
|
||||
.encodeMap<WebSendSession>(this as WebSendSession);
|
||||
}
|
||||
|
||||
WebSendSessionCopyWith<WebSendSession, WebSendSession, WebSendSession> get copyWith =>
|
||||
_WebSendSessionCopyWithImpl(this as WebSendSession, $identity, $identity);
|
||||
WebSendSessionCopyWith<WebSendSession, WebSendSession, WebSendSession>
|
||||
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<bool>? 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<bool>? 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<WebSendSession> $mapper = WebSendSessionMapper.ensureInitialized();
|
||||
late final ClassMapperBase<WebSendSession> $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);
|
||||
}
|
||||
|
||||
@@ -23,15 +23,19 @@ class WebSendStateMapper extends ClassMapperBase<WebSendState> {
|
||||
final String id = 'WebSendState';
|
||||
|
||||
static Map<String, WebSendSession> _$sessions(WebSendState v) => v.sessions;
|
||||
static const Field<WebSendState, Map<String, WebSendSession>> _f$sessions = Field('sessions', _$sessions);
|
||||
static const Field<WebSendState, Map<String, WebSendSession>> _f$sessions =
|
||||
Field('sessions', _$sessions);
|
||||
static Map<String, WebSendFile> _$files(WebSendState v) => v.files;
|
||||
static const Field<WebSendState, Map<String, WebSendFile>> _f$files = Field('files', _$files);
|
||||
static const Field<WebSendState, Map<String, WebSendFile>> _f$files =
|
||||
Field('files', _$files);
|
||||
static bool _$autoAccept(WebSendState v) => v.autoAccept;
|
||||
static const Field<WebSendState, bool> _f$autoAccept = Field('autoAccept', _$autoAccept);
|
||||
static const Field<WebSendState, bool> _f$autoAccept =
|
||||
Field('autoAccept', _$autoAccept);
|
||||
static String? _$pin(WebSendState v) => v.pin;
|
||||
static const Field<WebSendState, String> _f$pin = Field('pin', _$pin);
|
||||
static Map<String, int> _$pinAttempts(WebSendState v) => v.pinAttempts;
|
||||
static const Field<WebSendState, Map<String, int>> _f$pinAttempts = Field('pinAttempts', _$pinAttempts);
|
||||
static const Field<WebSendState, Map<String, int>> _f$pinAttempts =
|
||||
Field('pinAttempts', _$pinAttempts);
|
||||
|
||||
@override
|
||||
final MappableFields<WebSendState> fields = const {
|
||||
@@ -65,57 +69,80 @@ class WebSendStateMapper extends ClassMapperBase<WebSendState> {
|
||||
|
||||
mixin WebSendStateMappable {
|
||||
String serialize() {
|
||||
return WebSendStateMapper.ensureInitialized().encodeJson<WebSendState>(this as WebSendState);
|
||||
return WebSendStateMapper.ensureInitialized()
|
||||
.encodeJson<WebSendState>(this as WebSendState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return WebSendStateMapper.ensureInitialized().encodeMap<WebSendState>(this as WebSendState);
|
||||
return WebSendStateMapper.ensureInitialized()
|
||||
.encodeMap<WebSendState>(this as WebSendState);
|
||||
}
|
||||
|
||||
WebSendStateCopyWith<WebSendState, WebSendState, WebSendState> 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<String, WebSendSession>? sessions, Map<String, WebSendFile>? files, bool? autoAccept, String? pin, Map<String, int>? pinAttempts});
|
||||
$R call(
|
||||
{Map<String, WebSendSession>? sessions,
|
||||
Map<String, WebSendFile>? files,
|
||||
bool? autoAccept,
|
||||
String? pin,
|
||||
Map<String, int>? 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<WebSendState> $mapper = WebSendStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<WebSendState> $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<String, WebSendSession>? 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);
|
||||
}
|
||||
|
||||
@@ -23,29 +23,46 @@ class ReceiveSessionStateMapper extends ClassMapperBase<ReceiveSessionState> {
|
||||
final String id = 'ReceiveSessionState';
|
||||
|
||||
static String _$sessionId(ReceiveSessionState v) => v.sessionId;
|
||||
static const Field<ReceiveSessionState, String> _f$sessionId = Field('sessionId', _$sessionId);
|
||||
static const Field<ReceiveSessionState, String> _f$sessionId =
|
||||
Field('sessionId', _$sessionId);
|
||||
static SessionStatus _$status(ReceiveSessionState v) => v.status;
|
||||
static const Field<ReceiveSessionState, SessionStatus> _f$status = Field('status', _$status);
|
||||
static const Field<ReceiveSessionState, SessionStatus> _f$status =
|
||||
Field('status', _$status);
|
||||
static Device _$sender(ReceiveSessionState v) => v.sender;
|
||||
static const Field<ReceiveSessionState, Device> _f$sender = Field('sender', _$sender);
|
||||
static const Field<ReceiveSessionState, Device> _f$sender =
|
||||
Field('sender', _$sender);
|
||||
static String _$senderAlias(ReceiveSessionState v) => v.senderAlias;
|
||||
static const Field<ReceiveSessionState, String> _f$senderAlias = Field('senderAlias', _$senderAlias);
|
||||
static const Field<ReceiveSessionState, String> _f$senderAlias =
|
||||
Field('senderAlias', _$senderAlias);
|
||||
static Map<String, ReceivingFile> _$files(ReceiveSessionState v) => v.files;
|
||||
static const Field<ReceiveSessionState, Map<String, ReceivingFile>> _f$files = Field('files', _$files);
|
||||
static const Field<ReceiveSessionState, Map<String, ReceivingFile>> _f$files =
|
||||
Field('files', _$files);
|
||||
static int? _$startTime(ReceiveSessionState v) => v.startTime;
|
||||
static const Field<ReceiveSessionState, int> _f$startTime = Field('startTime', _$startTime);
|
||||
static const Field<ReceiveSessionState, int> _f$startTime =
|
||||
Field('startTime', _$startTime);
|
||||
static int? _$endTime(ReceiveSessionState v) => v.endTime;
|
||||
static const Field<ReceiveSessionState, int> _f$endTime = Field('endTime', _$endTime);
|
||||
static String _$destinationDirectory(ReceiveSessionState v) => v.destinationDirectory;
|
||||
static const Field<ReceiveSessionState, String> _f$destinationDirectory = Field('destinationDirectory', _$destinationDirectory);
|
||||
static const Field<ReceiveSessionState, int> _f$endTime =
|
||||
Field('endTime', _$endTime);
|
||||
static String _$destinationDirectory(ReceiveSessionState v) =>
|
||||
v.destinationDirectory;
|
||||
static const Field<ReceiveSessionState, String> _f$destinationDirectory =
|
||||
Field('destinationDirectory', _$destinationDirectory);
|
||||
static String _$cacheDirectory(ReceiveSessionState v) => v.cacheDirectory;
|
||||
static const Field<ReceiveSessionState, String> _f$cacheDirectory = Field('cacheDirectory', _$cacheDirectory);
|
||||
static const Field<ReceiveSessionState, String> _f$cacheDirectory =
|
||||
Field('cacheDirectory', _$cacheDirectory);
|
||||
static bool _$saveToGallery(ReceiveSessionState v) => v.saveToGallery;
|
||||
static const Field<ReceiveSessionState, bool> _f$saveToGallery = Field('saveToGallery', _$saveToGallery);
|
||||
static Set<String> _$createdDirectories(ReceiveSessionState v) => v.createdDirectories;
|
||||
static const Field<ReceiveSessionState, Set<String>> _f$createdDirectories = Field('createdDirectories', _$createdDirectories);
|
||||
static StreamController<Map<String, String>?>? _$responseHandler(ReceiveSessionState v) => v.responseHandler;
|
||||
static const Field<ReceiveSessionState, StreamController<Map<String, String>?>> _f$responseHandler = Field('responseHandler', _$responseHandler);
|
||||
static const Field<ReceiveSessionState, bool> _f$saveToGallery =
|
||||
Field('saveToGallery', _$saveToGallery);
|
||||
static Set<String> _$createdDirectories(ReceiveSessionState v) =>
|
||||
v.createdDirectories;
|
||||
static const Field<ReceiveSessionState, Set<String>> _f$createdDirectories =
|
||||
Field('createdDirectories', _$createdDirectories);
|
||||
static StreamController<Map<String, String>?>? _$responseHandler(
|
||||
ReceiveSessionState v) =>
|
||||
v.responseHandler;
|
||||
static const Field<ReceiveSessionState,
|
||||
StreamController<Map<String, String>?>> _f$responseHandler =
|
||||
Field('responseHandler', _$responseHandler);
|
||||
|
||||
@override
|
||||
final MappableFields<ReceiveSessionState> fields = const {
|
||||
@@ -93,39 +110,50 @@ class ReceiveSessionStateMapper extends ClassMapperBase<ReceiveSessionState> {
|
||||
|
||||
mixin ReceiveSessionStateMappable {
|
||||
String serialize() {
|
||||
return ReceiveSessionStateMapper.ensureInitialized().encodeJson<ReceiveSessionState>(this as ReceiveSessionState);
|
||||
return ReceiveSessionStateMapper.ensureInitialized()
|
||||
.encodeJson<ReceiveSessionState>(this as ReceiveSessionState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return ReceiveSessionStateMapper.ensureInitialized().encodeMap<ReceiveSessionState>(this as ReceiveSessionState);
|
||||
return ReceiveSessionStateMapper.ensureInitialized()
|
||||
.encodeMap<ReceiveSessionState>(this as ReceiveSessionState);
|
||||
}
|
||||
|
||||
ReceiveSessionStateCopyWith<ReceiveSessionState, ReceiveSessionState, ReceiveSessionState> get copyWith =>
|
||||
_ReceiveSessionStateCopyWithImpl(this as ReceiveSessionState, $identity, $identity);
|
||||
ReceiveSessionStateCopyWith<ReceiveSessionState, ReceiveSessionState,
|
||||
ReceiveSessionState>
|
||||
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<String>? createdDirectories,
|
||||
StreamController<Map<String, String>?>? 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<ReceiveSessionState> $mapper = ReceiveSessionStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<ReceiveSessionState> $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);
|
||||
}
|
||||
|
||||
@@ -23,17 +23,21 @@ class ReceivingFileMapper extends ClassMapperBase<ReceivingFile> {
|
||||
static FileDto _$file(ReceivingFile v) => v.file;
|
||||
static const Field<ReceivingFile, FileDto> _f$file = Field('file', _$file);
|
||||
static FileStatus _$status(ReceivingFile v) => v.status;
|
||||
static const Field<ReceivingFile, FileStatus> _f$status = Field('status', _$status);
|
||||
static const Field<ReceivingFile, FileStatus> _f$status =
|
||||
Field('status', _$status);
|
||||
static String? _$token(ReceivingFile v) => v.token;
|
||||
static const Field<ReceivingFile, String> _f$token = Field('token', _$token);
|
||||
static String? _$desiredName(ReceivingFile v) => v.desiredName;
|
||||
static const Field<ReceivingFile, String> _f$desiredName = Field('desiredName', _$desiredName);
|
||||
static const Field<ReceivingFile, String> _f$desiredName =
|
||||
Field('desiredName', _$desiredName);
|
||||
static String? _$path(ReceivingFile v) => v.path;
|
||||
static const Field<ReceivingFile, String> _f$path = Field('path', _$path);
|
||||
static bool _$savedToGallery(ReceivingFile v) => v.savedToGallery;
|
||||
static const Field<ReceivingFile, bool> _f$savedToGallery = Field('savedToGallery', _$savedToGallery);
|
||||
static const Field<ReceivingFile, bool> _f$savedToGallery =
|
||||
Field('savedToGallery', _$savedToGallery);
|
||||
static String? _$errorMessage(ReceivingFile v) => v.errorMessage;
|
||||
static const Field<ReceivingFile, String> _f$errorMessage = Field('errorMessage', _$errorMessage);
|
||||
static const Field<ReceivingFile, String> _f$errorMessage =
|
||||
Field('errorMessage', _$errorMessage);
|
||||
|
||||
@override
|
||||
final MappableFields<ReceivingFile> fields = const {
|
||||
@@ -71,46 +75,64 @@ class ReceivingFileMapper extends ClassMapperBase<ReceivingFile> {
|
||||
|
||||
mixin ReceivingFileMappable {
|
||||
String serialize() {
|
||||
return ReceivingFileMapper.ensureInitialized().encodeJson<ReceivingFile>(this as ReceivingFile);
|
||||
return ReceivingFileMapper.ensureInitialized()
|
||||
.encodeJson<ReceivingFile>(this as ReceivingFile);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return ReceivingFileMapper.ensureInitialized().encodeMap<ReceivingFile>(this as ReceivingFile);
|
||||
return ReceivingFileMapper.ensureInitialized()
|
||||
.encodeMap<ReceivingFile>(this as ReceivingFile);
|
||||
}
|
||||
|
||||
ReceivingFileCopyWith<ReceivingFile, ReceivingFile, ReceivingFile> get copyWith =>
|
||||
_ReceivingFileCopyWithImpl(this as ReceivingFile, $identity, $identity);
|
||||
ReceivingFileCopyWith<ReceivingFile, ReceivingFile, ReceivingFile>
|
||||
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<ReceivingFile> $mapper = ReceivingFileMapper.ensureInitialized();
|
||||
late final ClassMapperBase<ReceivingFile> $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);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,8 @@ class ServerStateMapper extends ClassMapperBase<ServerState> {
|
||||
final String id = 'ServerState';
|
||||
|
||||
static SimpleServer _$httpServer(ServerState v) => v.httpServer;
|
||||
static const Field<ServerState, SimpleServer> _f$httpServer = Field('httpServer', _$httpServer);
|
||||
static const Field<ServerState, SimpleServer> _f$httpServer =
|
||||
Field('httpServer', _$httpServer);
|
||||
static String _$alias(ServerState v) => v.alias;
|
||||
static const Field<ServerState, String> _f$alias = Field('alias', _$alias);
|
||||
static int _$port(ServerState v) => v.port;
|
||||
@@ -31,11 +32,14 @@ class ServerStateMapper extends ClassMapperBase<ServerState> {
|
||||
static bool _$https(ServerState v) => v.https;
|
||||
static const Field<ServerState, bool> _f$https = Field('https', _$https);
|
||||
static ReceiveSessionState? _$session(ServerState v) => v.session;
|
||||
static const Field<ServerState, ReceiveSessionState> _f$session = Field('session', _$session);
|
||||
static const Field<ServerState, ReceiveSessionState> _f$session =
|
||||
Field('session', _$session);
|
||||
static WebSendState? _$webSendState(ServerState v) => v.webSendState;
|
||||
static const Field<ServerState, WebSendState> _f$webSendState = Field('webSendState', _$webSendState);
|
||||
static const Field<ServerState, WebSendState> _f$webSendState =
|
||||
Field('webSendState', _$webSendState);
|
||||
static Map<String, int> _$pinAttempts(ServerState v) => v.pinAttempts;
|
||||
static const Field<ServerState, Map<String, int>> _f$pinAttempts = Field('pinAttempts', _$pinAttempts);
|
||||
static const Field<ServerState, Map<String, int>> _f$pinAttempts =
|
||||
Field('pinAttempts', _$pinAttempts);
|
||||
|
||||
@override
|
||||
final MappableFields<ServerState> fields = const {
|
||||
@@ -73,22 +77,27 @@ class ServerStateMapper extends ClassMapperBase<ServerState> {
|
||||
|
||||
mixin ServerStateMappable {
|
||||
String serialize() {
|
||||
return ServerStateMapper.ensureInitialized().encodeJson<ServerState>(this as ServerState);
|
||||
return ServerStateMapper.ensureInitialized()
|
||||
.encodeJson<ServerState>(this as ServerState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return ServerStateMapper.ensureInitialized().encodeMap<ServerState>(this as ServerState);
|
||||
return ServerStateMapper.ensureInitialized()
|
||||
.encodeMap<ServerState>(this as ServerState);
|
||||
}
|
||||
|
||||
ServerStateCopyWith<ServerState, ServerState, ServerState> get copyWith => _ServerStateCopyWithImpl(this as ServerState, $identity, $identity);
|
||||
ServerStateCopyWith<ServerState, ServerState, ServerState> 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<ServerState> $mapper = ServerStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<ServerState> $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);
|
||||
}
|
||||
|
||||
@@ -22,57 +22,84 @@ class SettingsStateMapper extends ClassMapperBase<SettingsState> {
|
||||
final String id = 'SettingsState';
|
||||
|
||||
static String _$showToken(SettingsState v) => v.showToken;
|
||||
static const Field<SettingsState, String> _f$showToken = Field('showToken', _$showToken);
|
||||
static const Field<SettingsState, String> _f$showToken =
|
||||
Field('showToken', _$showToken);
|
||||
static String _$alias(SettingsState v) => v.alias;
|
||||
static const Field<SettingsState, String> _f$alias = Field('alias', _$alias);
|
||||
static ThemeMode _$theme(SettingsState v) => v.theme;
|
||||
static const Field<SettingsState, ThemeMode> _f$theme = Field('theme', _$theme);
|
||||
static const Field<SettingsState, ThemeMode> _f$theme =
|
||||
Field('theme', _$theme);
|
||||
static ColorMode _$colorMode(SettingsState v) => v.colorMode;
|
||||
static const Field<SettingsState, ColorMode> _f$colorMode = Field('colorMode', _$colorMode);
|
||||
static const Field<SettingsState, ColorMode> _f$colorMode =
|
||||
Field('colorMode', _$colorMode);
|
||||
static AppLocale? _$locale(SettingsState v) => v.locale;
|
||||
static const Field<SettingsState, AppLocale> _f$locale = Field('locale', _$locale);
|
||||
static const Field<SettingsState, AppLocale> _f$locale =
|
||||
Field('locale', _$locale);
|
||||
static int _$port(SettingsState v) => v.port;
|
||||
static const Field<SettingsState, int> _f$port = Field('port', _$port);
|
||||
static List<String>? _$networkWhitelist(SettingsState v) => v.networkWhitelist;
|
||||
static const Field<SettingsState, List<String>> _f$networkWhitelist = Field('networkWhitelist', _$networkWhitelist);
|
||||
static List<String>? _$networkBlacklist(SettingsState v) => v.networkBlacklist;
|
||||
static const Field<SettingsState, List<String>> _f$networkBlacklist = Field('networkBlacklist', _$networkBlacklist);
|
||||
static List<String>? _$networkWhitelist(SettingsState v) =>
|
||||
v.networkWhitelist;
|
||||
static const Field<SettingsState, List<String>> _f$networkWhitelist =
|
||||
Field('networkWhitelist', _$networkWhitelist);
|
||||
static List<String>? _$networkBlacklist(SettingsState v) =>
|
||||
v.networkBlacklist;
|
||||
static const Field<SettingsState, List<String>> _f$networkBlacklist =
|
||||
Field('networkBlacklist', _$networkBlacklist);
|
||||
static String _$multicastGroup(SettingsState v) => v.multicastGroup;
|
||||
static const Field<SettingsState, String> _f$multicastGroup = Field('multicastGroup', _$multicastGroup);
|
||||
static const Field<SettingsState, String> _f$multicastGroup =
|
||||
Field('multicastGroup', _$multicastGroup);
|
||||
static String? _$destination(SettingsState v) => v.destination;
|
||||
static const Field<SettingsState, String> _f$destination = Field('destination', _$destination);
|
||||
static const Field<SettingsState, String> _f$destination =
|
||||
Field('destination', _$destination);
|
||||
static bool _$saveToGallery(SettingsState v) => v.saveToGallery;
|
||||
static const Field<SettingsState, bool> _f$saveToGallery = Field('saveToGallery', _$saveToGallery);
|
||||
static const Field<SettingsState, bool> _f$saveToGallery =
|
||||
Field('saveToGallery', _$saveToGallery);
|
||||
static bool _$saveToHistory(SettingsState v) => v.saveToHistory;
|
||||
static const Field<SettingsState, bool> _f$saveToHistory = Field('saveToHistory', _$saveToHistory);
|
||||
static const Field<SettingsState, bool> _f$saveToHistory =
|
||||
Field('saveToHistory', _$saveToHistory);
|
||||
static bool _$quickSave(SettingsState v) => v.quickSave;
|
||||
static const Field<SettingsState, bool> _f$quickSave = Field('quickSave', _$quickSave);
|
||||
static bool _$quickSaveFromFavorites(SettingsState v) => v.quickSaveFromFavorites;
|
||||
static const Field<SettingsState, bool> _f$quickSaveFromFavorites = Field('quickSaveFromFavorites', _$quickSaveFromFavorites);
|
||||
static const Field<SettingsState, bool> _f$quickSave =
|
||||
Field('quickSave', _$quickSave);
|
||||
static bool _$quickSaveFromFavorites(SettingsState v) =>
|
||||
v.quickSaveFromFavorites;
|
||||
static const Field<SettingsState, bool> _f$quickSaveFromFavorites =
|
||||
Field('quickSaveFromFavorites', _$quickSaveFromFavorites);
|
||||
static String? _$receivePin(SettingsState v) => v.receivePin;
|
||||
static const Field<SettingsState, String> _f$receivePin = Field('receivePin', _$receivePin);
|
||||
static const Field<SettingsState, String> _f$receivePin =
|
||||
Field('receivePin', _$receivePin);
|
||||
static bool _$autoFinish(SettingsState v) => v.autoFinish;
|
||||
static const Field<SettingsState, bool> _f$autoFinish = Field('autoFinish', _$autoFinish);
|
||||
static const Field<SettingsState, bool> _f$autoFinish =
|
||||
Field('autoFinish', _$autoFinish);
|
||||
static bool _$minimizeToTray(SettingsState v) => v.minimizeToTray;
|
||||
static const Field<SettingsState, bool> _f$minimizeToTray = Field('minimizeToTray', _$minimizeToTray);
|
||||
static const Field<SettingsState, bool> _f$minimizeToTray =
|
||||
Field('minimizeToTray', _$minimizeToTray);
|
||||
static bool _$https(SettingsState v) => v.https;
|
||||
static const Field<SettingsState, bool> _f$https = Field('https', _$https);
|
||||
static SendMode _$sendMode(SettingsState v) => v.sendMode;
|
||||
static const Field<SettingsState, SendMode> _f$sendMode = Field('sendMode', _$sendMode);
|
||||
static const Field<SettingsState, SendMode> _f$sendMode =
|
||||
Field('sendMode', _$sendMode);
|
||||
static bool _$saveWindowPlacement(SettingsState v) => v.saveWindowPlacement;
|
||||
static const Field<SettingsState, bool> _f$saveWindowPlacement = Field('saveWindowPlacement', _$saveWindowPlacement);
|
||||
static const Field<SettingsState, bool> _f$saveWindowPlacement =
|
||||
Field('saveWindowPlacement', _$saveWindowPlacement);
|
||||
static bool _$enableAnimations(SettingsState v) => v.enableAnimations;
|
||||
static const Field<SettingsState, bool> _f$enableAnimations = Field('enableAnimations', _$enableAnimations);
|
||||
static const Field<SettingsState, bool> _f$enableAnimations =
|
||||
Field('enableAnimations', _$enableAnimations);
|
||||
static DeviceType? _$deviceType(SettingsState v) => v.deviceType;
|
||||
static const Field<SettingsState, DeviceType> _f$deviceType = Field('deviceType', _$deviceType);
|
||||
static const Field<SettingsState, DeviceType> _f$deviceType =
|
||||
Field('deviceType', _$deviceType);
|
||||
static String? _$deviceModel(SettingsState v) => v.deviceModel;
|
||||
static const Field<SettingsState, String> _f$deviceModel = Field('deviceModel', _$deviceModel);
|
||||
static bool _$shareViaLinkAutoAccept(SettingsState v) => v.shareViaLinkAutoAccept;
|
||||
static const Field<SettingsState, bool> _f$shareViaLinkAutoAccept = Field('shareViaLinkAutoAccept', _$shareViaLinkAutoAccept);
|
||||
static const Field<SettingsState, String> _f$deviceModel =
|
||||
Field('deviceModel', _$deviceModel);
|
||||
static bool _$shareViaLinkAutoAccept(SettingsState v) =>
|
||||
v.shareViaLinkAutoAccept;
|
||||
static const Field<SettingsState, bool> _f$shareViaLinkAutoAccept =
|
||||
Field('shareViaLinkAutoAccept', _$shareViaLinkAutoAccept);
|
||||
static int _$discoveryTimeout(SettingsState v) => v.discoveryTimeout;
|
||||
static const Field<SettingsState, int> _f$discoveryTimeout = Field('discoveryTimeout', _$discoveryTimeout);
|
||||
static const Field<SettingsState, int> _f$discoveryTimeout =
|
||||
Field('discoveryTimeout', _$discoveryTimeout);
|
||||
static bool _$advancedSettings(SettingsState v) => v.advancedSettings;
|
||||
static const Field<SettingsState, bool> _f$advancedSettings = Field('advancedSettings', _$advancedSettings);
|
||||
static const Field<SettingsState, bool> _f$advancedSettings =
|
||||
Field('advancedSettings', _$advancedSettings);
|
||||
|
||||
@override
|
||||
final MappableFields<SettingsState> fields = const {
|
||||
@@ -148,38 +175,49 @@ class SettingsStateMapper extends ClassMapperBase<SettingsState> {
|
||||
|
||||
mixin SettingsStateMappable {
|
||||
String serialize() {
|
||||
return SettingsStateMapper.ensureInitialized().encodeJson<SettingsState>(this as SettingsState);
|
||||
return SettingsStateMapper.ensureInitialized()
|
||||
.encodeJson<SettingsState>(this as SettingsState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return SettingsStateMapper.ensureInitialized().encodeMap<SettingsState>(this as SettingsState);
|
||||
return SettingsStateMapper.ensureInitialized()
|
||||
.encodeMap<SettingsState>(this as SettingsState);
|
||||
}
|
||||
|
||||
SettingsStateCopyWith<SettingsState, SettingsState, SettingsState> get copyWith =>
|
||||
_SettingsStateCopyWithImpl(this as SettingsState, $identity, $identity);
|
||||
SettingsStateCopyWith<SettingsState, SettingsState, SettingsState>
|
||||
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<SettingsState> $mapper = SettingsStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<SettingsState> $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);
|
||||
}
|
||||
|
||||
@@ -23,65 +23,113 @@ class SettingsTabVmMapper extends ClassMapperBase<SettingsTabVm> {
|
||||
final String id = 'SettingsTabVm';
|
||||
|
||||
static bool _$advanced(SettingsTabVm v) => v.advanced;
|
||||
static const Field<SettingsTabVm, bool> _f$advanced = Field('advanced', _$advanced);
|
||||
static TextEditingController _$aliasController(SettingsTabVm v) => v.aliasController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$aliasController = Field('aliasController', _$aliasController);
|
||||
static TextEditingController _$deviceModelController(SettingsTabVm v) => v.deviceModelController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$deviceModelController = Field('deviceModelController', _$deviceModelController);
|
||||
static TextEditingController _$portController(SettingsTabVm v) => v.portController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$portController = Field('portController', _$portController);
|
||||
static TextEditingController _$timeoutController(SettingsTabVm v) => v.timeoutController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$timeoutController = Field('timeoutController', _$timeoutController);
|
||||
static TextEditingController _$multicastController(SettingsTabVm v) => v.multicastController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$multicastController = Field('multicastController', _$multicastController);
|
||||
static const Field<SettingsTabVm, bool> _f$advanced =
|
||||
Field('advanced', _$advanced);
|
||||
static TextEditingController _$aliasController(SettingsTabVm v) =>
|
||||
v.aliasController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$aliasController =
|
||||
Field('aliasController', _$aliasController);
|
||||
static TextEditingController _$deviceModelController(SettingsTabVm v) =>
|
||||
v.deviceModelController;
|
||||
static const Field<SettingsTabVm, TextEditingController>
|
||||
_f$deviceModelController =
|
||||
Field('deviceModelController', _$deviceModelController);
|
||||
static TextEditingController _$portController(SettingsTabVm v) =>
|
||||
v.portController;
|
||||
static const Field<SettingsTabVm, TextEditingController> _f$portController =
|
||||
Field('portController', _$portController);
|
||||
static TextEditingController _$timeoutController(SettingsTabVm v) =>
|
||||
v.timeoutController;
|
||||
static const Field<SettingsTabVm, TextEditingController>
|
||||
_f$timeoutController = Field('timeoutController', _$timeoutController);
|
||||
static TextEditingController _$multicastController(SettingsTabVm v) =>
|
||||
v.multicastController;
|
||||
static const Field<SettingsTabVm, TextEditingController>
|
||||
_f$multicastController =
|
||||
Field('multicastController', _$multicastController);
|
||||
static SettingsState _$settings(SettingsTabVm v) => v.settings;
|
||||
static const Field<SettingsTabVm, SettingsState> _f$settings = Field('settings', _$settings);
|
||||
static const Field<SettingsTabVm, SettingsState> _f$settings =
|
||||
Field('settings', _$settings);
|
||||
static ServerState? _$serverState(SettingsTabVm v) => v.serverState;
|
||||
static const Field<SettingsTabVm, ServerState> _f$serverState = Field('serverState', _$serverState);
|
||||
static const Field<SettingsTabVm, ServerState> _f$serverState =
|
||||
Field('serverState', _$serverState);
|
||||
static DeviceInfoResult _$deviceInfo(SettingsTabVm v) => v.deviceInfo;
|
||||
static const Field<SettingsTabVm, DeviceInfoResult> _f$deviceInfo = Field('deviceInfo', _$deviceInfo);
|
||||
static const Field<SettingsTabVm, DeviceInfoResult> _f$deviceInfo =
|
||||
Field('deviceInfo', _$deviceInfo);
|
||||
static List<ColorMode> _$colorModes(SettingsTabVm v) => v.colorModes;
|
||||
static const Field<SettingsTabVm, List<ColorMode>> _f$colorModes = Field('colorModes', _$colorModes);
|
||||
static const Field<SettingsTabVm, List<ColorMode>> _f$colorModes =
|
||||
Field('colorModes', _$colorModes);
|
||||
static bool _$autoStart(SettingsTabVm v) => v.autoStart;
|
||||
static const Field<SettingsTabVm, bool> _f$autoStart = Field('autoStart', _$autoStart);
|
||||
static bool _$autoStartLaunchHidden(SettingsTabVm v) => v.autoStartLaunchHidden;
|
||||
static const Field<SettingsTabVm, bool> _f$autoStartLaunchHidden = Field('autoStartLaunchHidden', _$autoStartLaunchHidden);
|
||||
static const Field<SettingsTabVm, bool> _f$autoStart =
|
||||
Field('autoStart', _$autoStart);
|
||||
static bool _$autoStartLaunchHidden(SettingsTabVm v) =>
|
||||
v.autoStartLaunchHidden;
|
||||
static const Field<SettingsTabVm, bool> _f$autoStartLaunchHidden =
|
||||
Field('autoStartLaunchHidden', _$autoStartLaunchHidden);
|
||||
static bool _$showInContextMenu(SettingsTabVm v) => v.showInContextMenu;
|
||||
static const Field<SettingsTabVm, bool> _f$showInContextMenu = Field('showInContextMenu', _$showInContextMenu);
|
||||
static Function _$onChangeTheme(SettingsTabVm v) => (v as dynamic).onChangeTheme as Function;
|
||||
static dynamic _arg$onChangeTheme(f) => f<void Function(BuildContext, ThemeMode)>();
|
||||
static const Field<SettingsTabVm, Function> _f$onChangeTheme = Field('onChangeTheme', _$onChangeTheme, arg: _arg$onChangeTheme);
|
||||
static Function _$onChangeColorMode(SettingsTabVm v) => (v as dynamic).onChangeColorMode as Function;
|
||||
static const Field<SettingsTabVm, bool> _f$showInContextMenu =
|
||||
Field('showInContextMenu', _$showInContextMenu);
|
||||
static Function _$onChangeTheme(SettingsTabVm v) =>
|
||||
(v as dynamic).onChangeTheme as Function;
|
||||
static dynamic _arg$onChangeTheme(f) =>
|
||||
f<void Function(BuildContext, ThemeMode)>();
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(ColorMode)>();
|
||||
static const Field<SettingsTabVm, Function> _f$onChangeColorMode = Field('onChangeColorMode', _$onChangeColorMode, arg: _arg$onChangeColorMode);
|
||||
static Function _$onTapLanguage(SettingsTabVm v) => (v as dynamic).onTapLanguage as Function;
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _f$onTapLanguage = Field('onTapLanguage', _$onTapLanguage, arg: _arg$onTapLanguage);
|
||||
static Function _$onToggleAutoStart(SettingsTabVm v) => (v as dynamic).onToggleAutoStart as Function;
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
Field('onToggleAutoStartLaunchHidden', _$onToggleAutoStartLaunchHidden,
|
||||
arg: _arg$onToggleAutoStartLaunchHidden);
|
||||
static Function _$onToggleShowInContextMenu(SettingsTabVm v) =>
|
||||
(v as dynamic).onToggleShowInContextMenu as Function;
|
||||
static dynamic _arg$onToggleShowInContextMenu(f) =>
|
||||
f<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _f$onTapRestartServer = Field('onTapRestartServer', _$onTapRestartServer, arg: _arg$onTapRestartServer);
|
||||
static Function _$onTapStartServer(SettingsTabVm v) => (v as dynamic).onTapStartServer as Function;
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(BuildContext)>();
|
||||
static const Field<SettingsTabVm, Function> _f$onTapStartServer = Field('onTapStartServer', _$onTapStartServer, arg: _arg$onTapStartServer);
|
||||
static Function _$onTapStopServer(SettingsTabVm v) => (v as dynamic).onTapStopServer as Function;
|
||||
static const Field<SettingsTabVm, Function> _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<void Function()>();
|
||||
static const Field<SettingsTabVm, Function> _f$onTapStopServer = Field('onTapStopServer', _$onTapStopServer, arg: _arg$onTapStopServer);
|
||||
static Function _$onTapAdvanced(SettingsTabVm v) => (v as dynamic).onTapAdvanced as Function;
|
||||
static const Field<SettingsTabVm, Function> _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<void Function(bool)>();
|
||||
static const Field<SettingsTabVm, Function> _f$onTapAdvanced = Field('onTapAdvanced', _$onTapAdvanced, arg: _arg$onTapAdvanced);
|
||||
static const Field<SettingsTabVm, Function> _f$onTapAdvanced =
|
||||
Field('onTapAdvanced', _$onTapAdvanced, arg: _arg$onTapAdvanced);
|
||||
static List<ThemeMode> _$themeModes(SettingsTabVm v) => v.themeModes;
|
||||
static const Field<SettingsTabVm, List<ThemeMode>> _f$themeModes = Field('themeModes', _$themeModes, mode: FieldMode.member);
|
||||
static const Field<SettingsTabVm, List<ThemeMode>> _f$themeModes =
|
||||
Field('themeModes', _$themeModes, mode: FieldMode.member);
|
||||
|
||||
@override
|
||||
final MappableFields<SettingsTabVm> fields = const {
|
||||
@@ -130,7 +178,8 @@ class SettingsTabVmMapper extends ClassMapperBase<SettingsTabVm> {
|
||||
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<SettingsTabVm> {
|
||||
|
||||
mixin SettingsTabVmMappable {
|
||||
String serialize() {
|
||||
return SettingsTabVmMapper.ensureInitialized().encodeJson<SettingsTabVm>(this as SettingsTabVm);
|
||||
return SettingsTabVmMapper.ensureInitialized()
|
||||
.encodeJson<SettingsTabVm>(this as SettingsTabVm);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return SettingsTabVmMapper.ensureInitialized().encodeMap<SettingsTabVm>(this as SettingsTabVm);
|
||||
return SettingsTabVmMapper.ensureInitialized()
|
||||
.encodeMap<SettingsTabVm>(this as SettingsTabVm);
|
||||
}
|
||||
|
||||
SettingsTabVmCopyWith<SettingsTabVm, SettingsTabVm, SettingsTabVm> get copyWith =>
|
||||
_SettingsTabVmCopyWithImpl(this as SettingsTabVm, $identity, $identity);
|
||||
SettingsTabVmCopyWith<SettingsTabVm, SettingsTabVm, SettingsTabVm>
|
||||
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<SettingsTabVm> $mapper = SettingsTabVmMapper.ensureInitialized();
|
||||
late final ClassMapperBase<SettingsTabVm> $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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -20,12 +20,17 @@ class SignalingStateMapper extends ClassMapperBase<SignalingState> {
|
||||
@override
|
||||
final String id = 'SignalingState';
|
||||
|
||||
static List<String> _$signalingServers(SignalingState v) => v.signalingServers;
|
||||
static const Field<SignalingState, List<String>> _f$signalingServers = Field('signalingServers', _$signalingServers);
|
||||
static List<String> _$signalingServers(SignalingState v) =>
|
||||
v.signalingServers;
|
||||
static const Field<SignalingState, List<String>> _f$signalingServers =
|
||||
Field('signalingServers', _$signalingServers);
|
||||
static List<String> _$stunServers(SignalingState v) => v.stunServers;
|
||||
static const Field<SignalingState, List<String>> _f$stunServers = Field('stunServers', _$stunServers);
|
||||
static Map<String, LsSignalingConnection> _$connections(SignalingState v) => v.connections;
|
||||
static const Field<SignalingState, Map<String, LsSignalingConnection>> _f$connections = Field('connections', _$connections);
|
||||
static const Field<SignalingState, List<String>> _f$stunServers =
|
||||
Field('stunServers', _$stunServers);
|
||||
static Map<String, LsSignalingConnection> _$connections(SignalingState v) =>
|
||||
v.connections;
|
||||
static const Field<SignalingState, Map<String, LsSignalingConnection>>
|
||||
_f$connections = Field('connections', _$connections);
|
||||
|
||||
@override
|
||||
final MappableFields<SignalingState> fields = const {
|
||||
@@ -36,7 +41,9 @@ class SignalingStateMapper extends ClassMapperBase<SignalingState> {
|
||||
|
||||
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<SignalingState> {
|
||||
|
||||
mixin SignalingStateMappable {
|
||||
String serialize() {
|
||||
return SignalingStateMapper.ensureInitialized().encodeJson<SignalingState>(this as SignalingState);
|
||||
return SignalingStateMapper.ensureInitialized()
|
||||
.encodeJson<SignalingState>(this as SignalingState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return SignalingStateMapper.ensureInitialized().encodeMap<SignalingState>(this as SignalingState);
|
||||
return SignalingStateMapper.ensureInitialized()
|
||||
.encodeMap<SignalingState>(this as SignalingState);
|
||||
}
|
||||
|
||||
SignalingStateCopyWith<SignalingState, SignalingState, SignalingState> get copyWith =>
|
||||
_SignalingStateCopyWithImpl(this as SignalingState, $identity, $identity);
|
||||
SignalingStateCopyWith<SignalingState, SignalingState, SignalingState>
|
||||
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<String>? signalingServers, List<String>? stunServers, Map<String, LsSignalingConnection>? 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<String>? signalingServers,
|
||||
List<String>? stunServers,
|
||||
Map<String, LsSignalingConnection>? 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<SignalingState> $mapper = SignalingStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<SignalingState> $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<String>? signalingServers, List<String>? stunServers, Map<String, LsSignalingConnection>? connections}) => $apply(FieldCopyWithData({
|
||||
$R call(
|
||||
{List<String>? signalingServers,
|
||||
List<String>? stunServers,
|
||||
Map<String, LsSignalingConnection>? 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);
|
||||
}
|
||||
|
||||
@@ -21,16 +21,24 @@ class WebRTCReceiveStateMapper extends ClassMapperBase<WebRTCReceiveState> {
|
||||
@override
|
||||
final String id = 'WebRTCReceiveState';
|
||||
|
||||
static LsSignalingConnection _$connection(WebRTCReceiveState v) => v.connection;
|
||||
static const Field<WebRTCReceiveState, LsSignalingConnection> _f$connection = Field('connection', _$connection);
|
||||
static LsSignalingConnection _$connection(WebRTCReceiveState v) =>
|
||||
v.connection;
|
||||
static const Field<WebRTCReceiveState, LsSignalingConnection> _f$connection =
|
||||
Field('connection', _$connection);
|
||||
static WsServerSdpMessage _$offer(WebRTCReceiveState v) => v.offer;
|
||||
static const Field<WebRTCReceiveState, WsServerSdpMessage> _f$offer = Field('offer', _$offer);
|
||||
static const Field<WebRTCReceiveState, WsServerSdpMessage> _f$offer =
|
||||
Field('offer', _$offer);
|
||||
static RTCStatus? _$status(WebRTCReceiveState v) => v.status;
|
||||
static const Field<WebRTCReceiveState, RTCStatus> _f$status = Field('status', _$status);
|
||||
static RtcReceiveController? _$controller(WebRTCReceiveState v) => v.controller;
|
||||
static const Field<WebRTCReceiveState, RtcReceiveController> _f$controller = Field('controller', _$controller);
|
||||
static ReceiveSessionState? _$sessionState(WebRTCReceiveState v) => v.sessionState;
|
||||
static const Field<WebRTCReceiveState, ReceiveSessionState> _f$sessionState = Field('sessionState', _$sessionState);
|
||||
static const Field<WebRTCReceiveState, RTCStatus> _f$status =
|
||||
Field('status', _$status);
|
||||
static RtcReceiveController? _$controller(WebRTCReceiveState v) =>
|
||||
v.controller;
|
||||
static const Field<WebRTCReceiveState, RtcReceiveController> _f$controller =
|
||||
Field('controller', _$controller);
|
||||
static ReceiveSessionState? _$sessionState(WebRTCReceiveState v) =>
|
||||
v.sessionState;
|
||||
static const Field<WebRTCReceiveState, ReceiveSessionState> _f$sessionState =
|
||||
Field('sessionState', _$sessionState);
|
||||
|
||||
@override
|
||||
final MappableFields<WebRTCReceiveState> fields = const {
|
||||
@@ -64,56 +72,71 @@ class WebRTCReceiveStateMapper extends ClassMapperBase<WebRTCReceiveState> {
|
||||
|
||||
mixin WebRTCReceiveStateMappable {
|
||||
String serialize() {
|
||||
return WebRTCReceiveStateMapper.ensureInitialized().encodeJson<WebRTCReceiveState>(this as WebRTCReceiveState);
|
||||
return WebRTCReceiveStateMapper.ensureInitialized()
|
||||
.encodeJson<WebRTCReceiveState>(this as WebRTCReceiveState);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return WebRTCReceiveStateMapper.ensureInitialized().encodeMap<WebRTCReceiveState>(this as WebRTCReceiveState);
|
||||
return WebRTCReceiveStateMapper.ensureInitialized()
|
||||
.encodeMap<WebRTCReceiveState>(this as WebRTCReceiveState);
|
||||
}
|
||||
|
||||
WebRTCReceiveStateCopyWith<WebRTCReceiveState, WebRTCReceiveState, WebRTCReceiveState> get copyWith =>
|
||||
_WebRTCReceiveStateCopyWithImpl(this as WebRTCReceiveState, $identity, $identity);
|
||||
WebRTCReceiveStateCopyWith<WebRTCReceiveState, WebRTCReceiveState,
|
||||
WebRTCReceiveState>
|
||||
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<WebRTCReceiveState> $mapper = WebRTCReceiveStateMapper.ensureInitialized();
|
||||
late final ClassMapperBase<WebRTCReceiveState> $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);
|
||||
}
|
||||
|
||||
@@ -21,13 +21,18 @@ class ApkProviderParamMapper extends ClassMapperBase<ApkProviderParam> {
|
||||
final String id = 'ApkProviderParam';
|
||||
|
||||
static String _$query(ApkProviderParam v) => v.query;
|
||||
static const Field<ApkProviderParam, String> _f$query = Field('query', _$query);
|
||||
static const Field<ApkProviderParam, String> _f$query =
|
||||
Field('query', _$query);
|
||||
static bool _$includeSystemApps(ApkProviderParam v) => v.includeSystemApps;
|
||||
static const Field<ApkProviderParam, bool> _f$includeSystemApps = Field('includeSystemApps', _$includeSystemApps);
|
||||
static bool _$onlyAppsWithLaunchIntent(ApkProviderParam v) => v.onlyAppsWithLaunchIntent;
|
||||
static const Field<ApkProviderParam, bool> _f$onlyAppsWithLaunchIntent = Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent);
|
||||
static const Field<ApkProviderParam, bool> _f$includeSystemApps =
|
||||
Field('includeSystemApps', _$includeSystemApps);
|
||||
static bool _$onlyAppsWithLaunchIntent(ApkProviderParam v) =>
|
||||
v.onlyAppsWithLaunchIntent;
|
||||
static const Field<ApkProviderParam, bool> _f$onlyAppsWithLaunchIntent =
|
||||
Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent);
|
||||
static bool _$selectMultipleApps(ApkProviderParam v) => v.selectMultipleApps;
|
||||
static const Field<ApkProviderParam, bool> _f$selectMultipleApps = Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false);
|
||||
static const Field<ApkProviderParam, bool> _f$selectMultipleApps =
|
||||
Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false);
|
||||
|
||||
@override
|
||||
final MappableFields<ApkProviderParam> fields = const {
|
||||
@@ -59,60 +64,88 @@ class ApkProviderParamMapper extends ClassMapperBase<ApkProviderParam> {
|
||||
|
||||
mixin ApkProviderParamMappable {
|
||||
String serialize() {
|
||||
return ApkProviderParamMapper.ensureInitialized().encodeJson<ApkProviderParam>(this as ApkProviderParam);
|
||||
return ApkProviderParamMapper.ensureInitialized()
|
||||
.encodeJson<ApkProviderParam>(this as ApkProviderParam);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return ApkProviderParamMapper.ensureInitialized().encodeMap<ApkProviderParam>(this as ApkProviderParam);
|
||||
return ApkProviderParamMapper.ensureInitialized()
|
||||
.encodeMap<ApkProviderParam>(this as ApkProviderParam);
|
||||
}
|
||||
|
||||
ApkProviderParamCopyWith<ApkProviderParam, ApkProviderParam, ApkProviderParam> get copyWith =>
|
||||
_ApkProviderParamCopyWithImpl(this as ApkProviderParam, $identity, $identity);
|
||||
ApkProviderParamCopyWith<ApkProviderParam, ApkProviderParam, ApkProviderParam>
|
||||
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<ApkProviderParam> $mapper = ApkProviderParamMapper.ensureInitialized();
|
||||
late final ClassMapperBase<ApkProviderParam> $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);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
part of 'cached_apk_provider_param.dart';
|
||||
|
||||
class CachedApkProviderParamMapper extends ClassMapperBase<CachedApkProviderParam> {
|
||||
class CachedApkProviderParamMapper
|
||||
extends ClassMapperBase<CachedApkProviderParam> {
|
||||
CachedApkProviderParamMapper._();
|
||||
|
||||
static CachedApkProviderParamMapper? _instance;
|
||||
@@ -20,12 +21,18 @@ class CachedApkProviderParamMapper extends ClassMapperBase<CachedApkProviderPara
|
||||
@override
|
||||
final String id = 'CachedApkProviderParam';
|
||||
|
||||
static bool _$includeSystemApps(CachedApkProviderParam v) => v.includeSystemApps;
|
||||
static const Field<CachedApkProviderParam, bool> _f$includeSystemApps = Field('includeSystemApps', _$includeSystemApps);
|
||||
static bool _$onlyAppsWithLaunchIntent(CachedApkProviderParam v) => v.onlyAppsWithLaunchIntent;
|
||||
static const Field<CachedApkProviderParam, bool> _f$onlyAppsWithLaunchIntent = Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent);
|
||||
static bool _$selectMultipleApps(CachedApkProviderParam v) => v.selectMultipleApps;
|
||||
static const Field<CachedApkProviderParam, bool> _f$selectMultipleApps = Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false);
|
||||
static bool _$includeSystemApps(CachedApkProviderParam v) =>
|
||||
v.includeSystemApps;
|
||||
static const Field<CachedApkProviderParam, bool> _f$includeSystemApps =
|
||||
Field('includeSystemApps', _$includeSystemApps);
|
||||
static bool _$onlyAppsWithLaunchIntent(CachedApkProviderParam v) =>
|
||||
v.onlyAppsWithLaunchIntent;
|
||||
static const Field<CachedApkProviderParam, bool> _f$onlyAppsWithLaunchIntent =
|
||||
Field('onlyAppsWithLaunchIntent', _$onlyAppsWithLaunchIntent);
|
||||
static bool _$selectMultipleApps(CachedApkProviderParam v) =>
|
||||
v.selectMultipleApps;
|
||||
static const Field<CachedApkProviderParam, bool> _f$selectMultipleApps =
|
||||
Field('selectMultipleApps', _$selectMultipleApps, opt: true, def: false);
|
||||
|
||||
@override
|
||||
final MappableFields<CachedApkProviderParam> fields = const {
|
||||
@@ -55,60 +62,88 @@ class CachedApkProviderParamMapper extends ClassMapperBase<CachedApkProviderPara
|
||||
|
||||
mixin CachedApkProviderParamMappable {
|
||||
String serialize() {
|
||||
return CachedApkProviderParamMapper.ensureInitialized().encodeJson<CachedApkProviderParam>(this as CachedApkProviderParam);
|
||||
return CachedApkProviderParamMapper.ensureInitialized()
|
||||
.encodeJson<CachedApkProviderParam>(this as CachedApkProviderParam);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return CachedApkProviderParamMapper.ensureInitialized().encodeMap<CachedApkProviderParam>(this as CachedApkProviderParam);
|
||||
return CachedApkProviderParamMapper.ensureInitialized()
|
||||
.encodeMap<CachedApkProviderParam>(this as CachedApkProviderParam);
|
||||
}
|
||||
|
||||
CachedApkProviderParamCopyWith<CachedApkProviderParam, CachedApkProviderParam, CachedApkProviderParam> get copyWith =>
|
||||
_CachedApkProviderParamCopyWithImpl(this as CachedApkProviderParam, $identity, $identity);
|
||||
CachedApkProviderParamCopyWith<CachedApkProviderParam, CachedApkProviderParam,
|
||||
CachedApkProviderParam>
|
||||
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<CachedApkProviderParam> $mapper = CachedApkProviderParamMapper.ensureInitialized();
|
||||
late final ClassMapperBase<CachedApkProviderParam> $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);
|
||||
}
|
||||
|
||||
@@ -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<void> verifyCert({required String cert, required String publicKey}) =>
|
||||
RustLib.instance.api.crateApiCryptoVerifyCert(cert: cert, publicKey: publicKey);
|
||||
RustLib.instance.api
|
||||
.crateApiCryptoVerifyCert(cert: cert, publicKey: publicKey);
|
||||
|
||||
Future<KeyPair> 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;
|
||||
}
|
||||
|
||||
@@ -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<void> enableDebugLogging() => RustLib.instance.api.crateApiLoggingEnableDebugLogging();
|
||||
Future<void> enableDebugLogging() =>
|
||||
RustLib.instance.api.crateApiLoggingEnableDebugLogging();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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<WsServerMessage> connect(
|
||||
{required String uri, required ClientInfoWithoutId info, required FutureOr<void> Function(LsSignalingConnection) onConnection}) =>
|
||||
RustLib.instance.api.crateApiWebrtcConnect(uri: uri, info: info, onConnection: onConnection);
|
||||
{required String uri,
|
||||
required ProposingClientInfo info,
|
||||
required String privateKey,
|
||||
required FutureOr<void> Function(LsSignalingConnection)
|
||||
onConnection}) =>
|
||||
RustLib.instance.api.crateApiWebrtcConnect(
|
||||
uri: uri,
|
||||
info: info,
|
||||
privateKey: privateKey,
|
||||
onConnection: onConnection);
|
||||
|
||||
// Rust type: RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<LsSignalingConnection>>
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -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<ClientInfo> 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<ClientInfo> peers})
|
||||
const _$WsServerMessage_HelloImpl(
|
||||
{required this.client, required final List<ClientInfo> 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<ClientInfo> peers}) = _$WsServerMessage_HelloImpl;
|
||||
const factory WsServerMessage_Hello(
|
||||
{required final ClientInfo client,
|
||||
required final List<ClientInfo> 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;
|
||||
}
|
||||
|
||||
+966
-408
File diff suppressed because it is too large
Load Diff
+327
-149
@@ -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<RustLibWire> {
|
||||
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<void> Function(LsSignalingConnection)
|
||||
@@ -83,38 +110,52 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<String> dco_decode_Set_String(dynamic raw);
|
||||
Set<String> dco_decode_Set_String_None(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RtcFileReceiver> dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver>
|
||||
dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> dco_decode_StreamSink_list_prim_u_8_strict_Sse(
|
||||
dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> dco_decode_StreamSink_list_prim_u_8_strict_Sse(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCFileError> dco_decode_StreamSink_rtc_file_error_Sse(dynamic raw);
|
||||
RustStreamSink<RTCFileError> dco_decode_StreamSink_rtc_file_error_Sse(
|
||||
dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCStatus> dco_decode_StreamSink_rtc_status_Sse(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<WsServerMessage> dco_decode_StreamSink_ws_server_message_Sse(dynamic raw);
|
||||
RustStreamSink<WsServerMessage> 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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@protected
|
||||
PlatformInt64 dco_decode_isize(dynamic raw);
|
||||
|
||||
@protected
|
||||
KeyPair dco_decode_key_pair(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<String> dco_decode_list_String(dynamic raw);
|
||||
|
||||
@@ -195,7 +244,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@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<RustLibWire> {
|
||||
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<String> sse_decode_Set_String(SseDeserializer deserializer);
|
||||
Set<String> sse_decode_Set_String_None(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RtcFileReceiver> sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver>
|
||||
sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> sse_decode_StreamSink_list_prim_u_8_strict_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> sse_decode_StreamSink_list_prim_u_8_strict_Sse(SseDeserializer deserializer);
|
||||
RustStreamSink<RTCFileError> sse_decode_StreamSink_rtc_file_error_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCFileError> sse_decode_StreamSink_rtc_file_error_Sse(SseDeserializer deserializer);
|
||||
RustStreamSink<RTCStatus> sse_decode_StreamSink_rtc_status_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCStatus> sse_decode_StreamSink_rtc_status_Sse(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<WsServerMessage> sse_decode_StreamSink_ws_server_message_Sse(SseDeserializer deserializer);
|
||||
RustStreamSink<WsServerMessage> 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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@protected
|
||||
PlatformInt64 sse_decode_isize(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
KeyPair sse_decode_key_pair(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
||||
|
||||
@@ -391,25 +489,34 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
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<void> Function(LsSignalingConnection) self, SseSerializer serializer);
|
||||
FutureOr<void> 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<String> self, SseSerializer serializer);
|
||||
void sse_encode_Set_String_None(Set<String> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver> self, SseSerializer serializer);
|
||||
void
|
||||
sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_list_prim_u_8_strict_Sse(RustStreamSink<Uint8List> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_list_prim_u_8_strict_Sse(
|
||||
RustStreamSink<Uint8List> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_rtc_file_error_Sse(RustStreamSink<RTCFileError> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_rtc_file_error_Sse(
|
||||
RustStreamSink<RTCFileError> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_rtc_status_Sse(RustStreamSink<RTCStatus> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_rtc_status_Sse(
|
||||
RustStreamSink<RTCStatus> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_ws_server_message_Sse(RustStreamSink<WsServerMessage> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_ws_server_message_Sse(
|
||||
RustStreamSink<WsServerMessage> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_String(String self, SseSerializer serializer);
|
||||
@@ -535,40 +670,54 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@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<String> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_client_info(List<ClientInfo> self, SseSerializer serializer);
|
||||
void sse_encode_list_client_info(
|
||||
List<ClientInfo> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_file_dto(List<FileDto> self, SseSerializer serializer);
|
||||
@@ -595,31 +748,41 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
void sse_encode_list_prim_u_8_loose(List<int> 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<RustLibWire> {
|
||||
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<T> Function<T extends ffi.NativeType>(String symbolName) _lookup;
|
||||
final ffi.Pointer<T> Function<T extends ffi.NativeType>(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<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(
|
||||
void
|
||||
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(
|
||||
void
|
||||
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(
|
||||
void
|
||||
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(
|
||||
void
|
||||
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(
|
||||
void
|
||||
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileSender(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(
|
||||
void
|
||||
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(
|
||||
void
|
||||
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCReceiveController(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(
|
||||
void
|
||||
rust_arc_increment_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(
|
||||
ffi.Pointer<ffi.Void> 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 Function(ffi.Pointer<ffi.Void>)>();
|
||||
|
||||
void rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(
|
||||
void
|
||||
rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(
|
||||
ffi.Pointer<ffi.Void> ptr,
|
||||
) {
|
||||
return _rust_arc_decrement_strong_count_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCSendController(
|
||||
|
||||
+381
-166
@@ -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<RustLibWire> {
|
||||
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<void> Function(LsSignalingConnection)
|
||||
@@ -85,38 +112,52 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<String> dco_decode_Set_String(dynamic raw);
|
||||
Set<String> dco_decode_Set_String_None(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RtcFileReceiver> dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver>
|
||||
dco_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> dco_decode_StreamSink_list_prim_u_8_strict_Sse(
|
||||
dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> dco_decode_StreamSink_list_prim_u_8_strict_Sse(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCFileError> dco_decode_StreamSink_rtc_file_error_Sse(dynamic raw);
|
||||
RustStreamSink<RTCFileError> dco_decode_StreamSink_rtc_file_error_Sse(
|
||||
dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCStatus> dco_decode_StreamSink_rtc_status_Sse(dynamic raw);
|
||||
|
||||
@protected
|
||||
RustStreamSink<WsServerMessage> dco_decode_StreamSink_ws_server_message_Sse(dynamic raw);
|
||||
RustStreamSink<WsServerMessage> 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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@protected
|
||||
PlatformInt64 dco_decode_isize(dynamic raw);
|
||||
|
||||
@protected
|
||||
KeyPair dco_decode_key_pair(dynamic raw);
|
||||
|
||||
@protected
|
||||
List<String> dco_decode_list_String(dynamic raw);
|
||||
|
||||
@@ -197,7 +246,8 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@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<RustLibWire> {
|
||||
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<String> sse_decode_Set_String(SseDeserializer deserializer);
|
||||
Set<String> sse_decode_Set_String_None(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RtcFileReceiver> sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver>
|
||||
sse_decode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> sse_decode_StreamSink_list_prim_u_8_strict_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<Uint8List> sse_decode_StreamSink_list_prim_u_8_strict_Sse(SseDeserializer deserializer);
|
||||
RustStreamSink<RTCFileError> sse_decode_StreamSink_rtc_file_error_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCFileError> sse_decode_StreamSink_rtc_file_error_Sse(SseDeserializer deserializer);
|
||||
RustStreamSink<RTCStatus> sse_decode_StreamSink_rtc_status_Sse(
|
||||
SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<RTCStatus> sse_decode_StreamSink_rtc_status_Sse(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
RustStreamSink<WsServerMessage> sse_decode_StreamSink_ws_server_message_Sse(SseDeserializer deserializer);
|
||||
RustStreamSink<WsServerMessage> 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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@protected
|
||||
PlatformInt64 sse_decode_isize(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
KeyPair sse_decode_key_pair(SseDeserializer deserializer);
|
||||
|
||||
@protected
|
||||
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
||||
|
||||
@@ -393,25 +491,34 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
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<void> Function(LsSignalingConnection) self, SseSerializer serializer);
|
||||
FutureOr<void> 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<String> self, SseSerializer serializer);
|
||||
void sse_encode_Set_String_None(Set<String> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver> self, SseSerializer serializer);
|
||||
void
|
||||
sse_encode_StreamSink_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerRTCFileReceiver_Sse(
|
||||
RustStreamSink<RtcFileReceiver> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_list_prim_u_8_strict_Sse(RustStreamSink<Uint8List> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_list_prim_u_8_strict_Sse(
|
||||
RustStreamSink<Uint8List> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_rtc_file_error_Sse(RustStreamSink<RTCFileError> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_rtc_file_error_Sse(
|
||||
RustStreamSink<RTCFileError> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_rtc_status_Sse(RustStreamSink<RTCStatus> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_rtc_status_Sse(
|
||||
RustStreamSink<RTCStatus> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_StreamSink_ws_server_message_Sse(RustStreamSink<WsServerMessage> self, SseSerializer serializer);
|
||||
void sse_encode_StreamSink_ws_server_message_Sse(
|
||||
RustStreamSink<WsServerMessage> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_String(String self, SseSerializer serializer);
|
||||
@@ -537,40 +672,54 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
@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<String> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_client_info(List<ClientInfo> self, SseSerializer serializer);
|
||||
void sse_encode_list_client_info(
|
||||
List<ClientInfo> self, SseSerializer serializer);
|
||||
|
||||
@protected
|
||||
void sse_encode_list_file_dto(List<FileDto> self, SseSerializer serializer);
|
||||
@@ -597,31 +750,41 @@ abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
||||
void sse_encode_list_prim_u_8_loose(List<int> 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<RustLibWire> {
|
||||
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<RustLibWire> {
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -22,9 +22,11 @@ class PickDirectoryResultMapper extends ClassMapperBase<PickDirectoryResult> {
|
||||
final String id = 'PickDirectoryResult';
|
||||
|
||||
static String _$directoryUri(PickDirectoryResult v) => v.directoryUri;
|
||||
static const Field<PickDirectoryResult, String> _f$directoryUri = Field('directoryUri', _$directoryUri);
|
||||
static const Field<PickDirectoryResult, String> _f$directoryUri =
|
||||
Field('directoryUri', _$directoryUri);
|
||||
static List<FileInfo> _$files(PickDirectoryResult v) => v.files;
|
||||
static const Field<PickDirectoryResult, List<FileInfo>> _f$files = Field('files', _$files);
|
||||
static const Field<PickDirectoryResult, List<FileInfo>> _f$files =
|
||||
Field('files', _$files);
|
||||
|
||||
@override
|
||||
final MappableFields<PickDirectoryResult> fields = const {
|
||||
@@ -33,7 +35,8 @@ class PickDirectoryResultMapper extends ClassMapperBase<PickDirectoryResult> {
|
||||
};
|
||||
|
||||
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<PickDirectoryResult> {
|
||||
|
||||
mixin PickDirectoryResultMappable {
|
||||
String serialize() {
|
||||
return PickDirectoryResultMapper.ensureInitialized().encodeJson<PickDirectoryResult>(this as PickDirectoryResult);
|
||||
return PickDirectoryResultMapper.ensureInitialized()
|
||||
.encodeJson<PickDirectoryResult>(this as PickDirectoryResult);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return PickDirectoryResultMapper.ensureInitialized().encodeMap<PickDirectoryResult>(this as PickDirectoryResult);
|
||||
return PickDirectoryResultMapper.ensureInitialized()
|
||||
.encodeMap<PickDirectoryResult>(this as PickDirectoryResult);
|
||||
}
|
||||
|
||||
PickDirectoryResultCopyWith<PickDirectoryResult, PickDirectoryResult, PickDirectoryResult> get copyWith =>
|
||||
_PickDirectoryResultCopyWithImpl(this as PickDirectoryResult, $identity, $identity);
|
||||
PickDirectoryResultCopyWith<PickDirectoryResult, PickDirectoryResult,
|
||||
PickDirectoryResult>
|
||||
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<FileInfo>? 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<PickDirectoryResult> $mapper = PickDirectoryResultMapper.ensureInitialized();
|
||||
late final ClassMapperBase<PickDirectoryResult> $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<FileInfo>? 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<FileInfo> {
|
||||
@@ -128,7 +151,8 @@ class FileInfoMapper extends ClassMapperBase<FileInfo> {
|
||||
static String _$uri(FileInfo v) => v.uri;
|
||||
static const Field<FileInfo, String> _f$uri = Field('uri', _$uri);
|
||||
static int _$lastModified(FileInfo v) => v.lastModified;
|
||||
static const Field<FileInfo, int> _f$lastModified = Field('lastModified', _$lastModified);
|
||||
static const Field<FileInfo, int> _f$lastModified =
|
||||
Field('lastModified', _$lastModified);
|
||||
|
||||
@override
|
||||
final MappableFields<FileInfo> fields = const {
|
||||
@@ -139,7 +163,11 @@ class FileInfoMapper extends ClassMapperBase<FileInfo> {
|
||||
};
|
||||
|
||||
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<FileInfo> {
|
||||
|
||||
mixin FileInfoMappable {
|
||||
String serialize() {
|
||||
return FileInfoMapper.ensureInitialized().encodeJson<FileInfo>(this as FileInfo);
|
||||
return FileInfoMapper.ensureInitialized()
|
||||
.encodeJson<FileInfo>(this as FileInfo);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return FileInfoMapper.ensureInitialized().encodeMap<FileInfo>(this as FileInfo);
|
||||
return FileInfoMapper.ensureInitialized()
|
||||
.encodeMap<FileInfo>(this as FileInfo);
|
||||
}
|
||||
|
||||
FileInfoCopyWith<FileInfo, FileInfo, FileInfo> get copyWith => _FileInfoCopyWithImpl(this as FileInfo, $identity, $identity);
|
||||
FileInfoCopyWith<FileInfo, FileInfo, FileInfo> 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<FileInfo> $mapper = FileInfoMapper.ensureInitialized();
|
||||
late final ClassMapperBase<FileInfo> $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);
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
+29
-23
@@ -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
|
||||
|
||||
|
||||
+4
-4
@@ -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:
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Generated
+27
-19
@@ -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",
|
||||
|
||||
+1
-1
@@ -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"
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
+141
-18
@@ -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 = <StreamSink<crate::api::webrtc::WsServerMessage,flutter_rust_bridge::for_generated::SseCodec>>::sse_decode(&mut deserializer);
|
||||
let api_uri = <String>::sse_decode(&mut deserializer);
|
||||
let api_info = <crate::api::webrtc::ClientInfoWithoutId>::sse_decode(&mut deserializer);
|
||||
let api_info = <crate::api::webrtc::ProposingClientInfo>::sse_decode(&mut deserializer);
|
||||
let api_private_key = <String>::sse_decode(&mut deserializer);
|
||||
let api_on_connection = decode_DartFn_Inputs_Auto_Owned_RustOpaque_flutter_rust_bridgefor_generatedRustAutoOpaqueInnerLsSignalingConnection_Output_unit_AnyhowException(<flutter_rust_bridge::DartOpaque>::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::SseCodec, _, _>(
|
||||
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 = <String>::sse_decode(deserializer);
|
||||
let mut var_publicKey = <String>::sse_decode(deserializer);
|
||||
return crate::api::crypto::KeyPair {
|
||||
private_key: var_privateKey,
|
||||
public_key: var_publicKey,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
impl SseDecode for Vec<String> {
|
||||
// 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 = <String>::sse_decode(deserializer);
|
||||
let mut var_version = <String>::sse_decode(deserializer);
|
||||
let mut var_deviceModel = <Option<String>>::sse_decode(deserializer);
|
||||
let mut var_deviceType = <Option<crate::api::model::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<FrbWrapper<crate::api::model::FileMetadat
|
||||
}
|
||||
}
|
||||
// Codec=Dco (DartCObject based), see doc to use other codecs
|
||||
impl flutter_rust_bridge::IntoDart for crate::api::crypto::KeyPair {
|
||||
fn into_dart(self) -> 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<crate::api::crypto::KeyPair>
|
||||
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<crate::api::webrtc::PinConfig> {
|
||||
fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
|
||||
[
|
||||
@@ -2428,6 +2510,29 @@ impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<crate::api::webrtc::PinConfig>
|
||||
}
|
||||
}
|
||||
// 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<crate::api::webrtc::ProposingClientInfo>
|
||||
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<crate::api::webrtc::RTCFileError> {
|
||||
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) {
|
||||
<String>::sse_encode(self.private_key, serializer);
|
||||
<String>::sse_encode(self.public_key, serializer);
|
||||
}
|
||||
}
|
||||
|
||||
impl SseEncode for Vec<String> {
|
||||
// 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) {
|
||||
<String>::sse_encode(self.alias, serializer);
|
||||
<String>::sse_encode(self.version, serializer);
|
||||
<Option<String>>::sse_encode(self.device_model, serializer);
|
||||
<Option<crate::api::model::DeviceType>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<LsSignalingConnection>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<LsSignalingConnection>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCFileReceiver>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCFileReceiver>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCFileSender>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCFileSender>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCReceiveController>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCReceiveController>>::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::<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<RTCSendController>>::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
|
||||
|
||||
|
||||
+32
-16
@@ -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<void> setSecurityContext(_i2.StoredSecurityContext? context) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setSignalingServers(List<String>? servers) => (super.noSuchMethod(
|
||||
_i4.Future<void> setSignalingServers(List<String>? 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<void> setReceiveHistory(List<_i5.ReceiveHistoryEntry>? entries) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void> setFavorites(List<_i6.FavoriteDevice>? entries) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setNetworkWhitelist(List<String>? whitelist) => (super.noSuchMethod(
|
||||
_i4.Future<void> setNetworkWhitelist(List<String>? whitelist) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#setNetworkWhitelist,
|
||||
[whitelist],
|
||||
@@ -289,7 +297,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setNetworkBlacklist(List<String>? blacklist) => (super.noSuchMethod(
|
||||
_i4.Future<void> setNetworkBlacklist(List<String>? blacklist) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#setNetworkBlacklist,
|
||||
[blacklist],
|
||||
@@ -329,7 +338,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setShareViaLinkAutoAccept(bool? shareViaLinkAutoAccept) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void> setAdvancedSettingsEnabled(bool? isEnabled) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void> setQuickSaveFromFavorites(bool? quickSaveFromFavorites) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void> setMinimizeToTray(bool? minimizeToTray) => (super.noSuchMethod(
|
||||
_i4.Future<void> setMinimizeToTray(bool? minimizeToTray) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#setMinimizeToTray,
|
||||
[minimizeToTray],
|
||||
@@ -611,7 +624,8 @@ class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setSaveWindowPlacement(bool? savePlacement) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void> setEnableAnimations(bool? enableAnimations) => (super.noSuchMethod(
|
||||
_i4.Future<void> 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<void> setDeviceType(_i12.DeviceType? deviceType) => (super.noSuchMethod(
|
||||
_i4.Future<void> setDeviceType(_i12.DeviceType? deviceType) =>
|
||||
(super.noSuchMethod(
|
||||
Invocation.method(
|
||||
#setDeviceType,
|
||||
[deviceType],
|
||||
|
||||
Reference in New Issue
Block a user