toPx property
String
get
toPx
Returns a CSS-formatted dimension string with 'px' unit.
Example:
final number = 12.34;
final pxString = number.toPx;
// returns: '12.34px'
Implementation
String get toPx => '${toCleanString}px';