You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
270 B
12 lines
270 B
3 years ago
|
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';
|
||
|
}
|
||
|
}
|