toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  if (Breakpoints.isXs(value)) return 'xs';
  if (Breakpoints.isSm(value)) return 'sm';
  if (Breakpoints.isMd(value)) return 'md';
  if (Breakpoints.isLg(value)) return 'lg';
  if (Breakpoints.isXl(value)) return 'xl';
  return '';
}