Dart 3.10 is taking off with dot shorthands, stable build hooks, nuanced deprecation annotations, and more!Learn more
use_ string_ in_ part_ of_ directives
Use string in part of directives.
Details
#FromEffective Dart:
DO use strings inpart of directives.
BAD:
partofmy_library;GOOD:
partof'../../my_library.dart';Enable
# To enable theuse_string_in_part_of_directives rule, adduse_string_in_part_of_directives underlinter > rules in youranalysis_options.yaml file:
linter:rules:-use_string_in_part_of_directives If you're instead using the YAML map syntax to configure linter rules, adduse_string_in_part_of_directives: true underlinter > rules:
linter:rules:use_string_in_part_of_directives:trueUnless stated otherwise, the documentation on this site reflects Dart 3.10.0.Report an issue.