copyWith method

GetChatBoostLevelFeatures copyWith({
  1. bool? isChannel,
  2. int? level,
})

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

Implementation

GetChatBoostLevelFeatures copyWith({
  bool? isChannel,
  int? level,
}) =>
    GetChatBoostLevelFeatures(
      isChannel: isChannel ?? this.isChannel,
      level: level ?? this.level,
    );