Future<bool?> isLockScreen() async { try { return await _channel.invokeMethod('isLockScreen') as bool?; } catch (e) { return null; } }