toString method

  1. @override
String toString()
override

String representation of this dimension.

Example usage:

final dim = Dim.px(12.0, true);
print('$dim'); // Output: '12px !important'

Implementation

@override
String toString() => cssText;