legs property

List<BoardingPassLeg> get legs

A list of all children of type "Leg".

Implementation

List<document_wrapper.BoardingPassLeg> get legs => document
    .childrenByDocumentType("Leg")
    .map((child) => document_wrapper.BoardingPassLeg(child))
    .toList();