toString method

  1. @override
String toString ()

Returns a string representation of this object.

Implementation

@override
String toString() {
  return '''
Error: Could not find the correct Provider<$valueType> above this $widgetType Widget

To fix, please:

* Ensure the Provider<$valueType> is an ancestor to this $widgetType Widget
* Provide types to Provider<$valueType>
* Provide types to Consumer<$valueType>
* Provide types to Provider.of<$valueType>()
* Ensure the correct `context` is being used.

If none of these solutions work, please file a bug at:
https://github.com/rrousselGit/provider/issues
''';
}