getWidth function

double getWidth(
  1. Styles styles
)

Implementation

double getWidth(Styles styles) {
  if (getTypeOf(styles.width) == '%') {
    return 0.0;
  } else {
    return getSize(size: styles.width, defValue: 0.0);
  }
}