copyWith method

  1. @override
VDividerStyle copyWith({
  1. Color? backgroundColor,
  2. double? thickness,
  3. dynamic height,
  4. dynamic indent,
  5. dynamic endIndent,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VDividerStyle copyWith({
  Color? backgroundColor,
  double? thickness,
  height,
  indent,
  endIndent,
}) =>
    VDividerStyle(
      dividerColor: backgroundColor ?? this.dividerColor,
      thickness: thickness ?? this.thickness,
      height: height ?? this.height,
      indent: indent ?? this.indent,
      endIndent: endIndent ?? this.endIndent,
    );