TypeChecker.fromDart constructor

const TypeChecker.fromDart(
  1. String type, {
  2. required String package,
})

Create a new TypeChecker for a dart package type.

For example:

const colorType = TypeChecker.fromDart('Color', package: 'ui');

Implementation

const factory TypeChecker.fromDart(String type, {required String package}) =
    TypeCheckerImpl.fromDartType;