toString method

  1. @override
String toString()
override

Backward-compatible way to get the URL if you treat this as a string.

Implementation

@override
String toString() => url ?? "";