copyWith method

  1. @override
ReplyMarkupShowKeyboard copyWith({
  1. List<List<KeyboardButton>>? rows,
  2. bool? isPersistent,
  3. bool? resizeKeyboard,
  4. bool? oneTime,
  5. bool? isPersonal,
  6. bool? forceReply,
  7. String? inputFieldPlaceholder,
})
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
ReplyMarkupShowKeyboard copyWith({
  List<List<KeyboardButton>>? rows,
  bool? isPersistent,
  bool? resizeKeyboard,
  bool? oneTime,
  bool? isPersonal,
  bool? forceReply,
  String? inputFieldPlaceholder,
}) => ReplyMarkupShowKeyboard(
  rows: rows ?? this.rows,
  isPersistent: isPersistent ?? this.isPersistent,
  resizeKeyboard: resizeKeyboard ?? this.resizeKeyboard,
  oneTime: oneTime ?? this.oneTime,
  isPersonal: isPersonal ?? this.isPersonal,
  forceReply: forceReply ?? this.forceReply,
  inputFieldPlaceholder: inputFieldPlaceholder ?? this.inputFieldPlaceholder,
);