toDto method

BoxBorderDto toDto()

Implementation

BoxBorderDto toDto() {
  if (this is Border) {
    return (this as Border).toDto();
  }
  if (this is BorderDirectional) {
    return (this as BorderDirectional).toDto();
  }

  throw ArgumentError.value(
    this,
    'border',
    'Border type is not supported',
  );
}