copyWith method

  1. @override
MdTextStyle copyWith({
  1. TextStyle? textStyle,
  2. EdgeInsets? padding,
})
override

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

Implementation

@override
MdTextStyle copyWith({
  TextStyle? textStyle,
  EdgeInsets? padding,
}) {
  return MdTextStyle(
    textStyle: textStyle ?? this.textStyle,
    padding: padding ?? this.padding,
  );
}