copyWith method

BlockComponentConfiguration copyWith({
  1. EdgeInsets padding(
    1. Node node
    )?,
  2. TextStyle textStyle(
    1. Node node
    )?,
  3. String placeholderText(
    1. Node node
    )?,
  4. TextStyle placeholderTextStyle(
    1. Node node
    )?,
})

Implementation

BlockComponentConfiguration copyWith({
  EdgeInsets Function(Node node)? padding,
  TextStyle Function(Node node)? textStyle,
  String Function(Node node)? placeholderText,
  TextStyle Function(Node node)? placeholderTextStyle,
}) {
  return BlockComponentConfiguration(
    padding: padding ?? this.padding,
    textStyle: textStyle ?? this.textStyle,
    placeholderText: placeholderText ?? this.placeholderText,
    placeholderTextStyle: placeholderTextStyle ?? this.placeholderTextStyle,
  );
}