Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

dart.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.

Learn more

Dart 3.10 is taking off with dot shorthands, stable build hooks, nuanced deprecation annotations, and more!Learn more

Stable
Core
Fix available

Use string in part of directives.

Details

#

FromEffective Dart:

DO use strings inpart of directives.

BAD:

dart
partofmy_library;

GOOD:

dart
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:

analysis_options.yaml
yaml
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:

analysis_options.yaml
yaml
linter:rules:use_string_in_part_of_directives:true
Was this page's content helpful?

Unless stated otherwise, the documentation on this site reflects Dart 3.10.0.Report an issue.


[8]ページ先頭

©2009-2025 Movatter.jp