Line data Source code
1 : /// An exception thrown when something went wrong while listening for position 2 : /// updates. 3 : class PositionUpdateException implements Exception { 4 : /// Constructs the [PositionUpdateException] 5 2 : const PositionUpdateException(this.message); 6 : 7 : /// A [message] describing more details on the update exception 8 : final String? message; 9 : 10 1 : @override 11 : String toString() { 12 3 : if (message == null || message == '') { 13 : return 'Something went wrong while listening for position updates.'; 14 : } 15 : 16 1 : return message!; 17 : } 18 : }