fetchContext method

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

Implementation

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