toDto method

SpacingDto toDto()

Implementation

SpacingDto toDto() {
  if (this is EdgeInsetsDirectional) {
    return (this as EdgeInsetsDirectional).toDto();
  } else if (this is EdgeInsets) {
    return (this as EdgeInsets).toDto();
  }

  throw ArgumentError.value(
    this,
    'edgeInsets',
    'Must be either EdgeInsets or EdgeInsetsDirectional',
  );
}