@override Future<int?> getScanPeriod() async { final version = await methodChannel.invokeMethod<int>('getScanPeriod'); return version; }