getChangeGroupMuteAllDisplayString static method

String getChangeGroupMuteAllDisplayString(
  1. ChangeGroupMuteAllSystemMessage systemMessage,
  2. BuildContext context
)

Implementation

static String getChangeGroupMuteAllDisplayString(
    ChangeGroupMuteAllSystemMessage systemMessage, BuildContext context) {
  AtomicLocalizations localizations = AtomicLocalizations.of(context);
  String operator = systemMessage.groupMuteAllOperator;
  bool isMuteAll = systemMessage.isMuteAll;
  return '$operator ${isMuteAll ? localizations.groupMuteAllEnabled : localizations.groupMuteAllDisabled}';
}