getRawDataFromStream method

  1. @override
Future<List<double>> getRawDataFromStream()
override

Implementation

@override
Future<List<double>> getRawDataFromStream() async {
  try {
    final result = await _methodChannel.invokeMethod<List<dynamic>>(
      'getRawDataFromStream',
    );
    return result?.map((e) => (e as num).toDouble()).toList() ?? <double>[];
  } on PlatformException catch (e) {
    throw Exception("Raw Stream Data Read Error: ${e.message}");
  }
}