copyWith method

GetCommands copyWith({
  1. BotCommandScope? scope,
  2. String? languageCode,
})

Implementation

GetCommands copyWith({BotCommandScope? scope, String? languageCode}) =>
    GetCommands(
      scope: scope ?? this.scope,
      languageCode: languageCode ?? this.languageCode,
    );