Skip to content

Commit

Permalink
more autoaunit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cybertheory committed Jan 6, 2024
1 parent 8093e2d commit 18a6e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Kilian Schulte (schultek) - Creator & Lead Developer
Martin Jablečník (mjablecnik) - Contributor
Jeff Ward (fuzzybinary) - Contributor
Matthew Jaoudi (gadfly361) - Contributor
Rishabh Singh - UC Berkeley (cybertheory) - Contributor
2 changes: 2 additions & 0 deletions packages/jaspr/lib/src/ui/styles/properties/unit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ extension UnitExt on num {
abstract class Unit {
static const Unit zero = _ZeroUnit();

///auto represents the style attribute unit 'auto'
static const Unit auto = _AutoUnit();

/// Constructs a [Unit] in the form '100%'
Expand Down Expand Up @@ -44,6 +45,7 @@ class _ZeroUnit implements Unit {
int get hashCode => 0;
}

///_AutoUnit represents the style attribute unit 'auto'
class _AutoUnit implements Unit {
const _AutoUnit();

Expand Down

0 comments on commit 18a6e75

Please sign in to comment.