copyWith method

TextTileStyle copyWith({
  1. double? spacing,
  2. EdgeInsetsGeometry? margin,
  3. TextTileAlign? align,
})

Creates a copy of this TextTileStyle but with the given fields replaced with the new values.

Implementation

TextTileStyle copyWith({
  double? spacing,
  EdgeInsetsGeometry? margin,
  TextTileAlign? align,
}) {
  return TextTileStyle(
    spacing: spacing ?? this.spacing,
    margin: margin ?? this.margin,
    align: align ?? this.align,
  );
}