defaultConfig method
Future<Config>
defaultConfig({
- required EnvironmentType envType,
- required String apiKey,
- required NodeConfig nodeConfig,
- dynamic hint,
override
See BreezServices::default_config
Implementation
Future<Config> defaultConfig(
{required EnvironmentType envType,
required String apiKey,
required NodeConfig nodeConfig,
dynamic hint}) {
var arg0 = api2wire_environment_type(envType);
var arg1 = _platform.api2wire_String(apiKey);
var arg2 = _platform.api2wire_box_autoadd_node_config(nodeConfig);
return _platform.executeNormal(FlutterRustBridgeTask(
callFfi: (port_) => _platform.inner.wire_default_config(port_, arg0, arg1, arg2),
parseSuccessData: _wire2api_config,
parseErrorData: null,
constMeta: kDefaultConfigConstMeta,
argValues: [envType, apiKey, nodeConfig],
hint: hint,
));
}