package Ġcom . d orm m om . flutter _ mapbox _ navigation . models Ċ Ċ import Ġandroid . location . Location Ċ import Ġcom . mapbox . navigation . base . trip . model . Route Progress Ċ import Ġcom . mapbox . navigation . base . trip . model . Route Progress State Ċ Ċ class ĠMap Box Route Progress Event ( progress : ĠRoute Progress , Ġlocation : ĠLocation ) Ġ{ ĊĠĠĠ Ġval Ġar rived : ĠBoolean Ġ= Ġprogress . currentState Ġ== ĠRoute Progress State . ROUTE _ COMPLETE ĊĠĠĠ Ġval Ġdistance : ĠDouble Ġ= Ġprogress . distance Remaining . toDouble () ĊĠĠĠ Ġval Ġduration : ĠDouble Ġ= Ġprogress . duration Remaining ĊĠĠĠ Ġval Ġdistance Tr ave led : ĠDouble Ġ= Ġprogress . distance Tr ave led . toDouble () ĊĠĠĠ Ġval Ġcurrent Leg Distance Tr ave led : ĠDouble ? Ġ= Ġprogress . current Leg Progress ?. distance Tr ave led ?. toDouble () ĊĠĠĠ Ġval Ġcurrent Leg Distance Remaining : ĠDouble ? Ġ= Ġprogress . current Leg Progress ?. distance Remaining ?. toDouble () ĊĠĠĠ Ġval Ġcurrent Step Instruction : ĠString ? Ġ= Ġprogress . banner Instructions ?. primary ()?. text () ĊĠĠĠ Ġval Ġleg Index : ĠInt ? Ġ= Ġprogress . current Leg Progress ?. leg Index ĊĠĠĠ Ġval Ġstep Index : ĠInt ? Ġ= Ġnull ĊĠĠĠ Ġval Ġcurrent Leg : ĠMap Box Route Leg ? Ġ= Ġnull ĊĠĠĠ Ġval Ġprior Leg : ĠMap Box Route Leg ? Ġ= Ġnull ĊĠĠĠ Ġval Ġremaining Le gs : ĠList < Map Box Route Leg > Ġ= ĠlistOf () Ċ } Ċ