Skip to content

Commit

Permalink
Refactor assertion in OuiScreenSizeDimension constructor for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasilverentand committed Dec 18, 2024
1 parent fe5501b commit 95bb295
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oui/lib/src/screens/oui_screen_size.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ class OuiScreenSizeDimension {
this.minimum = 300,
this.maximum = 1400,
this.weight = 1,
}) : assert(minimum <= maximum,
'minimum must be less than or equal to maximum');
}) : assert(
minimum <= maximum,
'minimum must be less than or equal to maximum',
);

/// Checks if the given [width] is within the range defined by [minimum] and [maximum].
///
Expand Down

0 comments on commit 95bb295

Please sign in to comment.