checkPluginConformance function
List<PluginCheckOutcome>
checkPluginConformance(
- Flutter3dPlugin create(), {
- PluginHarness harness = const PluginHarness(),
Runs every plugin check against the plugin create makes, and returns
what each found — one outcome per check, and one per backend for the
backends check.
For a tool or a script that reports rather than a suite that fails, and for earnsBadge. runPluginConformance is the same checks as tests.
Implementation
List<PluginCheckOutcome> checkPluginConformance(
Flutter3dPlugin Function() create, {
PluginHarness harness = const PluginHarness(),
}) {
final session = PluginSession(create, harness);
return <PluginCheckOutcome>[
for (final check in pluginChecks) ...check.run(session),
];
}