Trk constructor

Trk({
  1. String? name,
  2. String? cmt,
  3. String? desc,
  4. String? src,
  5. List<Link>? links,
  6. int? number,
  7. String? type,
  8. Map<String, String>? extensions,
  9. List<Trkseg>? trksegs,
})

Construct a new Trk object.

Implementation

Trk(
    {this.name,
    this.cmt,
    this.desc,
    this.src,
    List<Link>? links,
    this.number,
    this.type,
    Map<String, String>? extensions,
    List<Trkseg>? trksegs})
    : links = links ?? [],
      extensions = extensions ?? <String, String>{},
      trksegs = trksegs ?? [];