copyWith method

  1. @override
BlockStyle copyWith(
  1. covariant BlockStyle other
)
override

Implementation

@override
BlockStyle copyWith(BlockStyle other) {
  return BlockStyle(
    margin: other._margin ?? _margin,
    padding: other._padding ?? _padding,
    background: other.background ?? background,
    text: FlameTextStyle.merge(text, other.text),
  );
}