environmentSdkConstraint method
The Dart SDK constraint the package declares in environment.sdk,
or null if it declares none.
Implementation
String? environmentSdkConstraint() {
final sdk = pubspec.environment['sdk'];
if (sdk == null || sdk.isEmpty) {
return null;
}
return sdk.toString();
}