publicTransportFare property

String? get publicTransportFare

Get Fare

Returns

  • Fare of the route.

Throws

  • An exception if it fails.

Implementation

String? get publicTransportFare {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'PTRoute',
    'getPTFare',
  );

  final dynamic result = resultString['result'];

  return (result == null || result is! String || result.isEmpty)
      ? null
      : result;
}