Future<Uint8List?> toImagePng() async { try { return await currentContext!.toImagePng(); } catch (e) { return null; } }