info_tren/lib/utils/state_to_string.dart

12 lines
No EOL
270 B
Dart

import 'package:info_tren/models/train_data.dart';
String stateToString(State state) {
switch(state) {
case State.PASSING:
return 'trecere fără oprire';
case State.ARRIVAL:
return 'sosire';
case State.DEPARTURE:
return 'plecare';
}
}