undefined_hidden_name
The library '{0}' doesn't export a member with the hidden name '{1}'.
Description
#The analyzer produces this diagnostic when a hide combinator includes a name that isn't defined by the library being imported.
Example
#The following code produces this diagnostic because dart:math
doesn't define the name String
:
dart
import 'dart:math' hide String, max;
var x = min(0, 1);
Common fixes
#If a different name should be hidden, then correct the name. Otherwise, remove the name from the list:
dart
import 'dart:math' hide max;
var x = min(0, 1);
Was this page's content helpful?
Thank you for your feedback!
Provide details Thank you for your feedback! Please let us know what we can do to improve.
Provide details Unless stated otherwise, the documentation on this site reflects Dart 3.8.1. Page last updated on 2025-05-08. View source or report an issue.