copyWith method

InputBusinessStartPage copyWith({
  1. String? title,
  2. String? message,
  3. InputFile? sticker()?,
})

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

Implementation

InputBusinessStartPage copyWith({
  String? title,
  String? message,
  InputFile? Function()? sticker,
}) => InputBusinessStartPage(
  title: title ?? this.title,
  message: message ?? this.message,
  sticker: sticker != null ? sticker() : this.sticker,
);