UrlSource typedef

UrlSource = Future<String> Function({BuildContext context, String hint, String label})

A future function that can be used to prompt for a url or image source.

You can use this to show your own dialog and return the prompt value.

Check the function _takeInput for an example.

Implementation

typedef UrlSource = Future<String> Function({
  @required BuildContext context,
  @required String hint,
  @required String label,
});