warnDartOrFlutter method

void warnDartOrFlutter({
  1. required bool isFlutterOnly,
  2. required bool isDartOnly,
})

Implementation

void warnDartOrFlutter({
  required bool isFlutterOnly,
  required bool isDartOnly,
}) {
  if (isDartOnly || isFlutterOnly) {
    if (isDartOnly && !isFlutterOnly) {
      logger.info('Running only in dart packages');
    } else if (isFlutterOnly && !isDartOnly) {
      logger.info('Running only in flutter packages');
    } else {
      logger.info('Running both dart and flutter');
    }
  }
}