width property
set
width
(dynamic v)
inherited
Implementation
set width(dynamic v) {
if (v != null) {
if (S.isPercentage(v)) {
_widthPercentage = S.toDouble(v.split("%")[0]);
v = null;
} else
_widthPercentage = null;
if (v != null && v.runtimeType == String && v.contains('%')) {
String s = v;
v = s.replaceAll('%', '000000');
}
if (_width == null)
_width = DoubleObservable(Binding.toKey(id, 'width'), v,
scope: scope, listener: onPropertyChange);
else if (v != null) _width!.set(v);
}
}