From ae24003ca3d8e2977bff754dc37df3483044aed0 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Sat, 27 Jan 2024 09:48:12 -0500 Subject: [PATCH] Deprecate elevation helpers --- lib/src/attributes/shadow/shadow_util.dart | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/src/attributes/shadow/shadow_util.dart b/lib/src/attributes/shadow/shadow_util.dart index 5c36a652e..d07b27388 100644 --- a/lib/src/attributes/shadow/shadow_util.dart +++ b/lib/src/attributes/shadow/shadow_util.dart @@ -247,15 +247,37 @@ class ElevationUtility } // Convenience methods for common elevation values. + + @Deprecated('Use pass int value to call() instead') T none() => call(0); + + @Deprecated('Use pass int value to call() instead') T one() => call(1); + + @Deprecated('Use pass int value to call() instead') T two() => call(2); + + @Deprecated('Use pass int value to call() instead') T three() => call(3); + + @Deprecated('Use pass int value to call() instead') T four() => call(4); + + @Deprecated('Use pass int value to call() instead') T six() => call(6); + + @Deprecated('Use pass int value to call() instead') T eight() => call(8); + + @Deprecated('Use pass int value to call() instead') T nine() => call(9); + + @Deprecated('Use pass int value to call() instead') T twelve() => call(12); + + @Deprecated('Use pass int value to call() instead') T sixteen() => call(16); + + @Deprecated('Use pass int value to call() instead') T twentyFour() => call(24); }