@override Future<void> clear() async { try { await methodChannel.invokeMethod<void>('clear'); } on PlatformException { 'Failed to clear.'; } }