toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  return const <int, String>{
    0: 'FontWeight.w100',
    1: 'FontWeight.w200',
    2: 'FontWeight.w300',
    3: 'FontWeight.w400',
    4: 'FontWeight.w500',
    5: 'FontWeight.w600',
    6: 'FontWeight.w700',
    7: 'FontWeight.w800',
    8: 'FontWeight.w900',
  }[index];
}