copyWith method

HrStyle copyWith({
  1. double? thickness,
  2. Color? color,
  3. EdgeInsetsGeometry? padding,
})

A copy with the given fields replaced.

Implementation

HrStyle copyWith({
  double? thickness,
  Color? color,
  EdgeInsetsGeometry? padding,
}) {
  return HrStyle(
    thickness: thickness ?? this.thickness,
    color: color ?? this.color,
    padding: padding ?? this.padding,
  );
}