getProperty method

  1. @override
dynamic getProperty(
  1. String name
)
override

Implementation

@override
getProperty(String name) {
  switch (name) {
    case DISPLAY:
      return display;
    case Z_INDEX:
      return zIndex;
    case OVERFLOW_X:
      return overflowX;
    case OVERFLOW_Y:
      return overflowY;
    case OPACITY:
      return opacity;
    case VISIBILITY:
      return visibility;
    case CONTENT_VISIBILITY:
      return contentVisibility;
    case POSITION:
      return position;
    case TOP:
      return top;
    case LEFT:
      return left;
    case BOTTOM:
      return bottom;
    case RIGHT:
      return right;
    // Size
    case WIDTH:
      return width;
    case MIN_WIDTH:
      return minWidth;
    case MAX_WIDTH:
      return maxWidth;
    case HEIGHT:
      return height;
    case MIN_HEIGHT:
      return minHeight;
    case MAX_HEIGHT:
      return maxHeight;
    // Flex
    case FLEX_DIRECTION:
      return flexDirection;
    case FLEX_WRAP:
      return flexWrap;
    case ALIGN_CONTENT:
      return alignContent;
    case ALIGN_ITEMS:
      return alignItems;
    case JUSTIFY_CONTENT:
      return justifyContent;
    case ALIGN_SELF:
      return alignSelf;
    case FLEX_GROW:
      return flexGrow;
    case FLEX_SHRINK:
      return flexShrink;
    case FLEX_BASIS:
      return flexBasis;
    // Background
    case BACKGROUND_COLOR:
      return backgroundColor;
    case BACKGROUND_ATTACHMENT:
      return backgroundAttachment;
    case BACKGROUND_IMAGE:
      return backgroundImage;
    case BACKGROUND_REPEAT:
      return backgroundRepeat;
    case BACKGROUND_POSITION_X:
      return backgroundPositionX;
    case BACKGROUND_POSITION_Y:
      return backgroundPositionY;
    case BACKGROUND_SIZE:
      return backgroundSize;
    case BACKGROUND_CLIP:
      return backgroundClip;
    case BACKGROUND_ORIGIN:
      return backgroundOrigin;
    // Padding
    case PADDING_TOP:
      return paddingTop;
    case PADDING_RIGHT:
      return paddingRight;
    case PADDING_BOTTOM:
      return paddingBottom;
    case PADDING_LEFT:
      return paddingLeft;
    // Border
    case BORDER_LEFT_WIDTH:
      return borderLeftWidth;
    case BORDER_TOP_WIDTH:
      return borderTopWidth;
    case BORDER_RIGHT_WIDTH:
      return borderRightWidth;
    case BORDER_BOTTOM_WIDTH:
      return borderBottomWidth;
    case BORDER_LEFT_STYLE:
      return borderLeftStyle;
    case BORDER_TOP_STYLE:
      return borderTopStyle;
    case BORDER_RIGHT_STYLE:
      return borderRightStyle;
    case BORDER_BOTTOM_STYLE:
      return borderBottomStyle;
    case BORDER_LEFT_COLOR:
      return borderLeftColor;
    case BORDER_TOP_COLOR:
      return borderTopColor;
    case BORDER_RIGHT_COLOR:
      return borderRightColor;
    case BORDER_BOTTOM_COLOR:
      return borderBottomColor;
    case BOX_SHADOW:
      return boxShadow;
    case BORDER_TOP_LEFT_RADIUS:
      return borderTopLeftRadius;
    case BORDER_TOP_RIGHT_RADIUS:
      return borderTopRightRadius;
    case BORDER_BOTTOM_LEFT_RADIUS:
      return borderBottomLeftRadius;
    case BORDER_BOTTOM_RIGHT_RADIUS:
      return borderBottomRightRadius;
    // Margin
    case MARGIN_LEFT:
      return marginLeft;
    case MARGIN_TOP:
      return marginTop;
    case MARGIN_RIGHT:
      return marginRight;
    case MARGIN_BOTTOM:
      return marginBottom;
    // Text
    case COLOR:
      return color;
    case TEXT_DECORATION_LINE:
      return textDecorationLine;
    case TEXT_DECORATION_STYLE:
      return textDecorationStyle;
    case TEXT_DECORATION_COLOR:
      return textDecorationColor;
    case FONT_WEIGHT:
      return fontWeight;
    case FONT_STYLE:
      return fontStyle;
    case FONT_FAMILY:
      return fontFamily;
    case FONT_SIZE:
      return fontSize;
    case LINE_HEIGHT:
      return lineHeight;
    case LETTER_SPACING:
      return letterSpacing;
    case WORD_SPACING:
      return wordSpacing;
    case TEXT_SHADOW:
      return textShadow;
    case WHITE_SPACE:
      return whiteSpace;
    case TEXT_OVERFLOW:
      return textOverflow;
    case LINE_CLAMP:
      return lineClamp;
    case VERTICAL_ALIGN:
      return verticalAlign;
    case TEXT_ALIGN:
      return textAlign;
    // Transform
    case TRANSFORM:
      return transform;
    case TRANSFORM_ORIGIN:
      return transformOrigin;
    case SLIVER_DIRECTION:
      return sliverDirection;
    case OBJECT_FIT:
      return objectFit;
    case OBJECT_POSITION:
      return objectPosition;
    case FILTER:
      return filter;
  }
}