String _textValue()

in lib/src/stage/score_element.dart [30:41]


  String _textValue() {
    final timeInSeconds = (_game!.duration == null)
        ? '0'
        : (_game!.duration!.inMilliseconds / 1000).toStringAsFixed(1);
    var textValue = 'Bombs Left: ${_game!.bombsLeft}\nTime: $timeInSeconds';
    if (bestTime != null) {
      textValue =
          '$textValue\nRecord: ${(bestTime! / 1000).toStringAsFixed(1)}';
    }

    return textValue;
  }