get method

  1. @override
Object? get(
  1. Token name
)
override

Implementation

@override
Object? get(Token name) {
  switch (name.lexeme) {
    case 'width':
      return width;
    case 'height':
      return height;
    case 'zero':
      return Size.zero;
    case 'infinite':
      return Size.infinite;
  }
  return null;
}