NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #2726 most downloaded on pub.dev
Discontinued. This package is not intended to be used directly.
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 1.6 years
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
175 releases · first in 2015
Clearly mark discontinued in readme.
miscellaneous documentation improvements
enable_null_safetylibrary_annotationsnew lint: dangling_library_doc_comments
One column per quarter.
dangling_library_doc_commentsno_leading_underscores_for_local_identifiers to not report super formals as local variablesunnecessary_overrides false negativescancel_subscriptions for nullable fieldscollection_methods_unrelated_typelibrary_names to support unnamed librariesunnecessary_parenthesis support for as-expressionsuse_build_context_synchronously to check for context property accessescomment_referencesunnecessary_brace_in_string_interps for this expressionsuse_build_context_synchronously for BuildContext.mountedflutter_style_todos to handle more casesuse_build_context_synchronously to check for BuildContexts in named expressionsexhaustive_cases to check parenthesized expressionsavoid_null_checks_in_equality_operatorsjoin_return_with_statementrecursive_gettersunnecessary_lambdasdiagnostic_describe_all_propertiesprefer_foreachavoid_escaping_inner_quotescascade_invocationstighten_type_of_initializing_formalsprefer_interpolation_to_compose_stringsprefer_constructors_over_static_methodsavoid_returning_nullparameter_assignmentsprefer_constructors_over_static_methodsprefer_interpolation_to_compose_stringsavoid_returning_nullavoid_returning_thisflutter_style_todosavoid_positional_boolean_parametersprefer_const_constructorsimplicit_call_tearoffsunnecessary_library_directiveupdate avoid_redundant_argument_values to work with enum declarations
avoid_redundant_argument_values to work with enum declarationsprefer_containsunreachable_from_mainDartTypeUtilities refactoringfix avoid_redundant_argument_values when referencing required parameters in legacy libraries
avoid_redundant_argument_values when referencing requireduse_late_for_private_fields_and_variablesuse_string_in_part_of_directivesuse_super_parameters false positive with repeated superuse_late_for_private_fields_and_variables to handle enumsprefer_contains false positive when start index is non-zeronoop_primitive_operations to catch .toString()public_member_api_docs to report diagnostics on extensionDartTypeUtilities refactoringfixed use_colored_box and use_decorated_box to not over-report on containers without a child
combinators_orderinguse_colored_box and use_decorated_box to not over-reportunnecessary_parenthesis on a map-or-setprefer_final_locals reporting on fieldsunnecessary_overrides to allow overrides on @Protectedavoid_multiple_declarations_per_line false positive infor statementsprefer_final_locals false positive on declaration listsuse_build_context_synchronously to handle awaits inif conditionsimproved message and highlight range for no_duplicate_case_values
discarded_futuresno_duplicate_case_valueslines_longer_than_80_chars,
prefer_const_constructors_in_immutables, and
prefer_initializing_formalsfix prefer_final_parameters to support super parameters
prefer_final_parameters to support super parametersunnecessary_to_list_in_spreadsunawaited_futures to handle string interpolated
futuresuse_colored_box to not flag nullable colorsunnecessary_null_aware_operator_on_extension_on_nullablefixed no_leading_underscores_for_local_identifiers to lint local function declarations
no_leading_underscores_for_local_identifiers
to lint local function declarationsavoid_init_to_null to correctly handle super
initializing defaults that are non-nullno_leading_underscores_for_local_identifiers
to allow identifiers with just underscoresflutter_style_todos to support usernames that
start with a digitrequire_trailing_commas to handle functions
in asserts and multi-line stringsunsafe_html to allow assignments to
img.srcunnecessary_null_checks to properly handle map
literal entriesfixed false positives for unnecessary_getters_setters and prefer_final_fieldswith enhanced enums
unnecessary_getters_setters
and prefer_final_fieldswith enhanced enumsinvariant_booleansseveral use_super_parameters false positive fixes
use_super_parameters false positive fixesdepend_on_referenced_packages to treat
flutter_gen as a virtual package, not needing an
explicit dependencybumped language lower-bound constraint to 2.15.0
2.15.0fixed use_key_in_widget_constructors false positive with key super parameter initializers
use_key_in_widget_constructors false positive
with key super parameter initializersuse_super_parameters false positive with field
formal paramsunnecessary_null_checks and
null_check_on_nullable_type_parameter to handle
list/set/map literals, and yield and await
expressionsrenamed use_super_initializers to use_super_parameters
use_super_initializers to use_super_parametersunnecessary_null_aware_assignments property-access
false positivenew lint: use_super_initializers
use_super_initializersuse_enumsuse_colored_boxsort_constructorsalways_use_package_imports,
avoid_print, and avoid_relative_lib_importsavoid_void_async to skip main functionsprefer_final_parameters to not super on super paramsunnecessary_late to report on the variable namenull_check_on_nullable_type_parameter stableNothing published for this version
Nothing published for this version
update exhaustive_cases to skip deprecated values that redirect to other values
camel_case_types to cover enumsno_leading_underscores_for_local_identifiers to not
mis-flag field formal parameters with default valuesprefer_function_declarations_over_variables to not
mis-flag non-final fieldsprefer_containsexhaustive_cases to skip deprecated values that
redirect to other values- update to analyzer version 3.0
analyzer version 3.0fix to no_leading_underscores_for_local_identifiers to allow underscores in catch clauses
unnecessary_lateno_leading_underscores_for_local_identifiers to allow
underscores in catch clausesdoc improvements for prefer_initializing_formals
prefer_initializing_formalssecure_pubspec_urls to check issue_tracker and
repository entriesconditional_uri_does_not_existmissing_whitespace_between_adjacent_stringsnew lint: no_leading_underscores_for_library_prefixes
use_decorated_boxno_leading_underscores_for_library_prefixesno_leading_underscores_for_local_identifierssecure_pubspec_urlssized_box_shrink_expandavoid_final_parametersomit_local_variable_typesallow while (true) { ...} in literal_only_boolean_expressions
while (true) { ...} in literal_only_boolean_expressionsfile_names to report at the start of the file (not the entire
compilation unit)prefer_collection_literals named typed param false positiveuse_build_context_synchronouslyfixed unnecessary_lambdas false positive for const constructor invocations
unnecessary_lambdas false positive for const constructor invocationsavoid_print to allow kDebugMode-wrapped print callsprefer_final_parametersunnecessary_parenthesis false positive with function expressionsadded support for constructor tear-offs to avoid_redundant_argument_values, unnecessary_lambdas, and unnecessary_parenthesis
avoid_redundant_argument_values,
unnecessary_lambdas, and unnecessary_parenthesisunnecessary_constructor_name to flag unnecessary uses of .newimproved regular expression parsing performance for common checks (camel_case_types, file_names, etc.)
camel_case_types, file_names, etc.)use_build_context_synchronously in awaits inside
anonymous functionsoverridden_fields false positive w/ static fieldsavoid_null_checks_in_equality_operators w/
non-nullable paramsprefer_const_constructorsmarked avoid_dynamic_calls stable
avoid_dynamic_calls stableMockPubVisitor and MockRule classesprefer_void_to_null false positive w/ overridden propertiesNodeLintRule in lint rule declarationsprefer_void_to_null false positive on overriding returnsprefer_generic_function_type_aliases false positive w/ incomplete statementsprefer_initializing_formals with factory constructorsvoid_checks false positives with incomplete sourceunnecessary_getters_setters to only flag the getteravoid_renaming_method_parametersprefer_void_to_nullomit_local_variable_typesuse_rethrow_when_possibleannotate_overrides, prefer_contains, and prefer_void_to_nullperformance improvements for prefer_is_not_empty
prefer_is_not_emptyno_logic_in_create_statepackage_names to allow dart identifiers as package namespackage_names (causing keywords to wrongly get flagged)avoid_classes_with_only_static_member to check for inherited members and also
flag classes with only methodscurly_braces_in_flow_control_structures to properly flag terminating else-if
blocksalways_specify_types to support type aliasesunnecessary_string_interpolations w/ nullable interpolated
stringsavoid_function_literals_in_foreach_calls for nullable
iterablesavoid_returning_null w/ NNBDuse_late_for_private_fields_and_variables in the presence
of const constructorseol_at_end_of_fileanalyzer constraint to >=2.0.0 <3.0.0Update analyzer constraint to >=1.7.0 <3.0.0.
analyzer constraint to >=1.7.0 <3.0.0.meta constraint to >=1.3.0 <3.0.0.fixed case-sensitive false positive in use_full_hex_values_for_flutter_colors
use_full_hex_values_for_flutter_colorsuse_build_context_synchronouslyuse_setters_to_change_properties to only highlight a method name,
not the entire body and doc commentunnecessary_getters_setters to allow otherwise "unnecessary" getters
and setters with annotationsmissing_whitespace_between_adjacent_strings to allow String
interpolations at the beginning and end of String literalsunnecessary_getters_setters to allow for setters with non-basic
assignments (for example, ??= or +=)reverted relaxation of sort_child_properties_last to allow for a trailing Widget in instance creations
sort_child_properties_last to allow for a
trailing Widget in instance creationsrelaxed non_constant_identifier_names to allow for a trailing underscore
non_constant_identifier_names to allow for a trailing
underscoreprefer_final_parameters where first parameter
is finaldirectives_ordering sorting of directives with dot paths and
dot-separated package namessort_child_properties_last to allow for a trailing Widget in
instance creations(internal) migrated to SecurityLintCode instead of deprecated SecurityLintCodeWithUniqueName
SecurityLintCode instead of deprecated
SecurityLintCodeWithUniqueNameavoid_types_as_parameter_names to skip field formal
parametersprefer_interpolation_to_compose_strings where
the left operand is not a Stringonly_throw_errors for misidentified type
variablesdepend_on_referenced_packagesavoid_returning_null_for_future to skip checks for null-safe
librariesuse_test_throws_matcherssort_child_properties_last to accept closures after childprefer_contains and prefer_is_emptynoop_primitive_operationsavoid_web_libraries_in_flutter as stableprefer_final_parametersprefer_initializing_formals to allow assignments where identifier
names don't matchdirectives_ordering now checks ordering of package: imports in code outside pub packages
directives_ordering now checks ordering of package: imports in code
outside pub packagesuse_build_context_synchronously to
short-circuit await-discovery in terminating blocksuse_build_context_synchronously updated to recognize nullable types when
accessed from legacy librariesnon_constant_identifier_names updated to check local variables, for-loop initializers and catch clauses
non_constant_identifier_names updated to check local variables, for-loop
initializers and catch clauseslines_longer_than_80_chars updated to start at 80 to make
splitting easierrequire_trailing_commasprefer_null_aware_method_callsfix: adjusted SDK lower bound to 2.12.0-0 (from 2.13.0-0)
improvements to iterable_contains_unrelated_type to better support List content checks
iterable_contains_unrelated_type to better support List
content checkscamel_case_types and prefer_mixin to support non-function
type aliasesfixed prefer_mixin to properly make exceptions for dart.collection legacy mixins
prefer_mixin to properly make exceptions for dart.collection legacy
mixinsuse_build_context_synchronously (experimental)avoid_multiple_declarations_per_linenew lint: deprecated_consistency
use_if_null_to_convert_nulls_to_boolsdeprecated_consistencyuse_named_constantsavoid_asfixed a bug where avoid_dynamic_calls produced false-positives for .call()
avoid_dynamic_calls produced false-positives for .call()fixed crash in prefer_collection_literals when there is no static parameter element
prefer_collection_literals when there is no static parameter
elementfixed false negatives for prefer_collection_literals when a LinkedHashSet or LinkedHashMap instantiation is passed as the argument to a function in an
prefer_collection_literals when a LinkedHashSet or
LinkedHashMap instantiation is passed as the argument to a function in any
position other than the firstprefer_collection_literals when a LinkedHashSet or
LinkedHashMap instantiation is used in a place with a static type other than
Set or Map(internal): update to new PhysicalResourceProvider API
PhysicalResourceProvider APIfixed false positives in prefer_constructors_over_static_methods
prefer_constructors_over_static_methodspackage_names to allow leading underscoresfixed NPEs in unnecessary_null_checks
unnecessary_null_checksfixed NPE in unnecessary_null_checks
unnecessary_null_checksmissing_whitespace_between_adjacent_stringsvoid_checks for NNBDunnecessary_string_escapesunnecessary_null_typesprefer_constructors_over_static_methods to respect type parametersalways_require_non_null_named_parameters to be NNBD-awareunnecessary_nullable_for_final_variable_declarations to allow dynamicoverridden_fields to not report on abstract parent fieldsunrelated_type_equality_checks for NNBDtype_init_formalsto allow types not equal to the field typeperformance improvements to always_use_package_imports, avoid_renaming_method_parameters, prefer_relative_imports and public_member_api_docs
always_use_package_imports, avoid_renaming_method_parameters, prefer_relative_imports and public_member_api_docs0.40.4 APIsnew lint: cast_nullable_to_non_nullable
cast_nullable_to_non_nullablenull_check_on_nullable_type_parametertighten_type_of_initializing_formalspublic_member_apis to check generic type aliasesfix close_sinks to handle this-prefixed property accesses
close_sinks to handle this-prefixed property accessesunnecessary_null_checksunawaited_futures to handle Future subtypesavoid_type_to_stringnew lint: unnecessary_nullable_for_final_variable_declarations
unnecessary_nullable_for_final_variable_declarationsprefer_asserts_in_initializer_listsunnecessary_string_escapesunsafe_html updated to support unique error codesdiagnostic_describe_all_properties to check for Diagnosticables (not DiagnosticableMixins)use_lateunnecessary_lambdas to respect deferred importspublic_member_api_docs to check mixinsunnecessary_statements to skip as expressionsprefer_relative_imports to work with path dependenciesfixed directives_ordering to remove third party package special-casing
directives_ordering to remove third party package special-casingunnecessary_lambdas to check for tearoff assignabilityexhaustive_cases to not flag missing cases that are defaultedprefer_is_empty to special-case assert initializers and const contextslib/src/test_utilitiesdo_not_use_environmentnew lint: no_default_cases (experimental)
no_default_cases (experimental)exhaustive_casestype_annotate_public_apis to allow inferred types in final field assignmentsprefer_mixin to allow "legacy" SDK abstract class mixinsuse_is_even_rather_than_modulounsafe_html to use a SecurityLintCode (making it un-ignorable)sized_box_for_whitespace to address false-positivesupdated avoid_types_as_parameter_names to check catch-clauses
avoid_types_as_parameter_names to check catch-clausesunsafe_html to check attributes and methods on extensionsunsafe_html to include Window.open, Element.html and DocumentFragment.html in unsafe API checkssort_child_properties_lastpackage:analyzer API updatessized_box_for_whitespacefixed avoid_shadowing_type_parameters to support extensions and mixins
avoid_shadowing_type_parameters to support extensions and mixinsnon_constant_identifier_names to allow named constructors made up of only underscores (_)avoid_unused_constructor_parameters to ignore unused params named in all underscores (_)unnecessary_getters_setters fixed to ignore cases where a getter/setter is deprecated
one_member_abstracts updated to not lint classes with mixins or implementing interfacesunnecessary_getters_setters fixed to ignore cases where a getter/setter is deprecatedleading_newlines_in_multiline_stringsavoid_private_typedef_functions and avoid_returning_null_for_futuremarked prefer_typing_uninitialized_variables and omit_local_variable_types as compatible
prefer_typing_uninitialized_variables and omit_local_variable_types as compatiblenew lint: unnecessary_raw_strings
use_raw_stringsunnecessary_raw_stringsavoid_escaping_inner_quotesunnecessary_string_escapesNothing published for this version
avoid_unused_constructor_parameters updated to ignore deprecated parameters
avoid_web_libraries_in_flutterunnecessary_string_interpolationsmissing_whitespace_between_adjacent_stringsavoid_unused_constructor_parameters updated to ignore deprecated parametersno_runtimeType_toStringimprovedprefer_single_quotes lint message
prefer_single_quotes lint messageunnecessary_finals fixed to not flag fieldsunnecessary_lambdas fixed to work with type argumentsLinterContext.resolveNameInScope() APIYour coding agent can read these notes before it upgrades. Set up the MCP server →