Skip to content

Commit

Permalink
Merge pull request #178 from conceptadev/chore/deprecate-elevation-he…
Browse files Browse the repository at this point in the history
…lpers

Deprecate elevation helpers
  • Loading branch information
leoafarias authored Jan 27, 2024
2 parents 9803606 + ae24003 commit 5989244
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/src/attributes/shadow/shadow_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,37 @@ class ElevationUtility<T extends StyleAttribute>
}

// 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);
}

0 comments on commit 5989244

Please sign in to comment.