-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop using singleton instance on Dart bindings
- Loading branch information
1 parent
797375d
commit 35d6966
Showing
9 changed files
with
5,069 additions
and
2,861 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// This file is automatically generated, so please do not edit it. | ||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.36. | ||
|
||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import | ||
|
||
import 'frb_generated.dart'; | ||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart'; | ||
import 'package:freezed_annotation/freezed_annotation.dart' hide protected; | ||
part 'error.freezed.dart'; | ||
|
||
@freezed | ||
sealed class ConnectError with _$ConnectError implements FrbException { | ||
const ConnectError._(); | ||
|
||
/// This error is raised when a general error occurs not specific to other error variants | ||
/// in this enum. | ||
const factory ConnectError.generic({ | ||
required String err, | ||
}) = ConnectError_Generic; | ||
|
||
/// This error is raised when [crate::models::ConnectRequest::restore_only] is set to true | ||
/// and no node exists for [crate::models::ConnectRequest::seed]. | ||
const factory ConnectError.restoreOnly({ | ||
required String err, | ||
}) = ConnectError_RestoreOnly; | ||
|
||
/// This error is raised when a connection to an external service fails. | ||
const factory ConnectError.serviceConnectivity({ | ||
required String err, | ||
}) = ConnectError_ServiceConnectivity; | ||
} |
Oops, something went wrong.