copyWith method

  1. @override
MdDivider copyWith({
  1. double? dividerHeight,
  2. Color? dividerColor,
  3. double? dividerThickness,
})
override

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

Implementation

@override
MdDivider copyWith({
  double? dividerHeight,
  Color? dividerColor,
  double? dividerThickness,
}) {
  return MdDivider(
    dividerHeight: dividerHeight ?? this.dividerHeight,
    dividerColor: dividerColor ?? this.dividerColor,
    dividerThickness: dividerThickness ?? this.dividerThickness,
  );
}