optimize method

  1. @override
void optimize(
  1. String flowName,
  2. int? maxDelay,
  3. Map<String, dynamic>? customSignals,
  4. ValueSetter<int> onGoodMoment,
)
override

Implementation

@override
void optimize(String flowName, int? maxDelay,
    Map<String, dynamic>? customSignals, ValueSetter<int> onGoodMoment) {
  final callbackId = _getCallbackId(onGoodMoment);
  methodChannel.invokeMethod<void>('optimize', <String, dynamic>{
    'flowName': flowName,
    'maxDelay': maxDelay,
    'customSignals': customSignals,
    'callbackId': callbackId,
  });
}