cryptoExchanges<JSCDATA extends JsonScheme> static method

void cryptoExchanges<JSCDATA extends JsonScheme>({
  1. required JSCDATA jsonSceheme,
  2. required Set<String> keys,
  3. required void changeValue(
    1. String key,
    2. dynamic defaultValue
    ),
  4. bool isThrowOnError = false,
})

Implementation

static void cryptoExchanges<JSCDATA extends JsonScheme>({
  required JSCDATA jsonSceheme,
  required Set<String> keys,
  required void Function(String key, dynamic defaultValue) changeValue,
  bool isThrowOnError = false,
}) {
  for (final String key in keys) {
    Crypto.cryptoExchange(
      defaultValue: jsonSceheme[key],
      isThrowOnError: isThrowOnError,
      changeValue: (defaultValue) {
        changeValue(key, defaultValue);
      },
    );
  }
  return;
}