sdkConstraint property
VersionConstraint?
sdkConstraint
Retrieves the Flutter SDK constraint from the pubspec.yaml file.
Returns null
if the constraint is not defined.
Implementation
VersionConstraint? get sdkConstraint => pubspec?.environment?.sdkConstraint;