summaryrefslogtreecommitdiff
path: root/server/lib/core/methods/game_util_methods.dart
blob: 8c2220e80500cad4893f1751d4ab806929a61fef (plain)
1
2
3
4
5
6
7
8
9
10
11
part of '../state/game_state.dart';

// ignore_for_file: library_private_types_in_public_api

class GameUtilMethods {
  //note: while this changes the game state, it is a state used also by non game related instances.
  static void setToastMessage(String message, {GameState? gameState}) {
    final gs = gameState ?? getIt<GameState>();
    gs._toastMessage = message;
  }
}