toNative method

  1. @override
BrainBit2AmplifierParamNative toNative(
  1. BrainBit2AmplifierParam val
)
override

Implementation

@override
BrainBit2AmplifierParamNative toNative(BrainBit2AmplifierParam val) {
  return BrainBit2AmplifierParamNative(
      chSignalMode: List.generate(
          val.chSignalMode.length, (index) => val.chSignalMode[index].index),
      chResistUse: val.chResistUse,
      chGain: List.generate(
          val.chGain.length, (index) => val.chGain[index].index),
      current: val.current);
}