From 0e8bef4451d1737b8b0d662819911127400e16d5 Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Sat, 23 Apr 2022 17:51:56 +0200 Subject: [PATCH] added deprecated annotation to ContextMenuItem old androidId and iosId properties --- lib/src/context_menu.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/context_menu.dart b/lib/src/context_menu.dart index 038ddcfe..ad063c6d 100644 --- a/lib/src/context_menu.dart +++ b/lib/src/context_menu.dart @@ -81,8 +81,8 @@ class ContextMenuItem { ContextMenuItem( {this.id, - this.androidId, - this.iosId, + @Deprecated("Use id instead") this.androidId, + @Deprecated("Use id instead") this.iosId, required this.title, this.action}) { if (defaultTargetPlatform == TargetPlatform.android) {