copyWith method

  1. @override
UtilityPowerSourceBorder copyWith({
  1. BorderSide? side,
  2. double? slant,
})
override

Returns a copy of this OutlinedBorder that draws its outline with the specified side, if side is non-null.

Implementation

@override
UtilityPowerSourceBorder copyWith({BorderSide? side, double? slant}) {
  return UtilityPowerSourceBorder(
    side: side ?? this.side,
    slant: slant ?? this.slant,
  );
}