borderSide method

IrStroke? borderSide(
  1. DartValue? v
)

Implementation

IrStroke? borderSide(DartValue? v) {
  final d = deref(unwrapStateProperty(v));
  if (d is! ObjectValue || d.type != 'BorderSide') return null;
  if (enumName(d['style']) == 'none') return null;
  return IrStroke(
    color: color(d['color']) ?? IrColor.black,
    width: number(d['width']) ?? 1,
  );
}