getBufferedRuntimeLogs method

Future<List<Map<String, dynamic>>?> getBufferedRuntimeLogs()

Returns buffered runtime log entries from the native layer.

Implementation

Future<List<Map<String, dynamic>>?> getBufferedRuntimeLogs() async {
  try {
    final result = await _channel
        .invokeListMethod<Map>('getBufferedRuntimeLogs');
    return result?.map((m) => m.cast<String, dynamic>()).toList();
  } catch (_) {
    return null;
  }
}