TransitLine constructor
TransitLine({
- Iterable<
TransitAgency> ? agencies, - String? name,
- String? uri,
- String? color,
- String? iconUri,
- String? nameShort,
- String? textColor,
- TransitVehicle? vehicle,
Implementation
factory TransitLine({
$core.Iterable<TransitAgency>? agencies,
$core.String? name,
$core.String? uri,
$core.String? color,
$core.String? iconUri,
$core.String? nameShort,
$core.String? textColor,
TransitVehicle? vehicle,
}) {
final $result = create();
if (agencies != null) {
$result.agencies.addAll(agencies);
}
if (name != null) {
$result.name = name;
}
if (uri != null) {
$result.uri = uri;
}
if (color != null) {
$result.color = color;
}
if (iconUri != null) {
$result.iconUri = iconUri;
}
if (nameShort != null) {
$result.nameShort = nameShort;
}
if (textColor != null) {
$result.textColor = textColor;
}
if (vehicle != null) {
$result.vehicle = vehicle;
}
return $result;
}