isEnabled method

  1. @override
bool isEnabled(
  1. CustomLintConfigs configs
)

Checks whether this lint rule is enabled in a configuration file.

If a lint is neither enabled nor disabled by a configuration file, enabledByDefault will be checked.

Implementation

@override
bool isEnabled(CustomLintConfigs configs) {
  return _checkers.isNotEmpty;
}