copyWith method

ZeroDividerStyle copyWith({
  1. Color? color,
  2. double? size,
  3. double? startInset,
  4. double? endInset,
})

If the caller passes in a value for a parameter, use that value, otherwise use the value from this object.

A new instance of ZeroDividerStyle with the same properties as the original instance, except for the properties that are explicitly overridden.

Implementation

ZeroDividerStyle copyWith({
  Color? color,
  double? size,
  double? startInset,
  double? endInset,
}) {
  return ZeroDividerStyle(
    color: color ?? this.color,
    size: size ?? this.size,
    startInset: startInset ?? this.startInset,
    endInset: endInset ?? this.endInset,
  );
}