get method

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

Implementation

@override
Object? get(Token name) {
  switch (name.lexeme) {
    case 'size':
      return SizeIns(data.size.width, data.size.height);
    case 'devicePixelRatio':
      return data.devicePixelRatio;
    case 'textScaleFactor':
      return data.textScaleFactor;
    case 'padding':
      return data.padding;
  }
}