getCollectedVariables method

  1. @override
Future<Map<String, dynamic>> getCollectedVariables()
override

Gets all collected variables from the SDK

Implementation

@override
Future<Map<String, dynamic>> getCollectedVariables() async {
  try {
    final result = await methodChannel.invokeMethod<String>('getCollectedVariables');
    if (result == null) return {};
    return json.decode(result) as Map<String, dynamic>;
  } catch (e, s) {
    debugPrintStack(label: e.toString(), stackTrace: s);
    rethrow;
  }
}