metro/doctor library
Classes
- DoctorCheck
-
What one of
metro doctor's checks found.
Enums
- DoctorStatus
-
How one of
metro doctor's checks came out.
Functions
-
checkAssets(
{String projectRoot = '.'}) → DoctorCheck -
Images in
assets/images(orpublic/images) that nothing refers to. -
checkDecoders(
{String projectRoot = '.'}) → DoctorCheck -
API services, controllers and models the app uses that
lib/bootstrap/decoders.dartdoesn't register. -
checkEnv(
{String projectRoot = '.'}) → DoctorCheck -
Keys in
.envthat.env-exampledoesn't have. -
checkLanguages(
{String projectRoot = '.'}) → DoctorCheck - Keys the default language file has that another language file doesn't.
-
checkRoutes(
{String projectRoot = '.'}) → DoctorCheck - Pages that declare a route path but aren't added to a router.
-
doctorExitCode(
List< DoctorCheck> checks, {bool strict = false}) → int -
The exit code for
checks: 1 when one found a problem, or a note whenstrict, otherwise 0. -
formatDoctorReport(
List< DoctorCheck> checks, {bool ansi = true}) → String -
checksasmetro doctorprints them, coloured whenansi. -
runDoctor(
{String projectRoot = '.'}) → List< DoctorCheck> -
Runs every
metro doctorcheck against the project inprojectRoot.