hardcoded_strings 0.0.2+1 hardcoded_strings: ^0.0.2+1 copied to clipboard
Linter which notifies if the user is using hardcoded strings or invalid Ditto keys
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add hardcoded_strings
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
hardcoded_strings: ^0.0.2+1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:hardcoded_strings/hardcoded_strings.dart';