instantContext method

  1. @override
Future<int> instantContext(
  1. String flowName,
  2. int duration,
  3. Map<String, dynamic>? customSignals
)
override

Implementation

@override
Future<int> instantContext(String flowName, int duration,
    Map<String, dynamic>? customSignals) async {
  final contextId = await methodChannel
      .invokeMethod<int>('instantContext', <String, dynamic>{
    'flowName': flowName,
    'duration': duration,
    'customSignals': customSignals,
  });
  return contextId ?? -1;
}