Station constructor

Station(
  1. String? code,
  2. String? type
)

Implementation

Station(String? code, String? type) : super(code) {
  if (code != null) {
    _station = _getData(code, codeTypes[type]!);
  } else {
    _station = List.generate(8, (index) => null);
  }
}