getGyroscope method

  1. @override
Future<GyroscopeEvent?> getGyroscope()
override

Returns a Future with the gyroscope event.

Implementation

@override
Future<GyroscopeEvent?> getGyroscope() async {
  final gyroscope =
      await methodChannel.invokeMethod<GyroscopeEvent>('getGyroscope');
  return gyroscope;
}