copyWith method

  1. @override
PageBlockButtonRow copyWith({
  1. List<InlineButton>? buttons,
  2. PageBlockHorizontalAlignment? align()?,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
PageBlockButtonRow copyWith({
  List<InlineButton>? buttons,
  PageBlockHorizontalAlignment? Function()? align,
}) => PageBlockButtonRow(
  buttons: buttons ?? this.buttons,
  align: align != null ? align() : this.align,
);