shouldNotIncludeLibrary method
- @protected
- Uri uri,
- RuntimeScannerConfiguration configuration
Parameters:
uri
: The library URI to checkloader
: The RuntimeScannerConfiguration configuration- onError: Error callback function
Returns true
if the library should be excluded because:
- It's a Dart core library
- It matches exclusion patterns
- It doesn't match inclusion patterns (when specified)
Example:
final exclude = await ReflectUtils.shouldNotIncludeLibrary(
uri,
loader,
(error) => print('Error: $error'),
);
Implementation
@protected
Future<bool> shouldNotIncludeLibrary(Uri uri, RuntimeScannerConfiguration configuration) => RuntimeUtils.shouldNotIncludeLibrary(uri, configuration);