conditionText property

String get conditionText

The condition as CSS ((min-width: tablet) and (orientation: portrait)).

Implementation

String get conditionText => [
      if (minWidth != null) '(min-width: $minWidth)',
      if (maxWidth != null) '(max-width: $maxWidth)',
      if (orientation != null) '(orientation: ${orientation!.name})',
    ].join(' and ');