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