Implement flutter bindings

This commit is contained in:
Roei Erez
2024-09-23 11:55:19 +03:00
committed by Ross Savage
parent fe15534d68
commit c999cedaa3
8 changed files with 69 additions and 17 deletions

View File

@@ -180,24 +180,24 @@ class Config {
/// An argument when calling [crate::sdk::LiquidSdk::connect].
class ConnectRequest {
final String mnemonic;
final Config config;
final String mnemonic;
const ConnectRequest({
required this.mnemonic,
required this.config,
required this.mnemonic,
});
@override
int get hashCode => mnemonic.hashCode ^ config.hashCode;
int get hashCode => config.hashCode ^ mnemonic.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ConnectRequest &&
runtimeType == other.runtimeType &&
mnemonic == other.mnemonic &&
config == other.config;
config == other.config &&
mnemonic == other.mnemonic;
}
/// Returned when calling [crate::sdk::LiquidSdk::get_info].