timestamp property

int get timestamp

Implementation

int get timestamp {
  if (fragments.isEmpty) {
    return 0;
  }
  String timeFragment =
      fragments.firstWhere((e) => e.startsWith('t='), orElse: () => 't=0');
  return int.parse(timeFragment.replaceFirst('t=', ''));
}