forBackend method

MaterialCompiler? forBackend(
  1. String backend
)

The compiler for backend — the one registered last — or null. backend is a backend id, compared exactly.

Implementation

MaterialCompiler? forBackend(String backend) {
  for (final compiler in _compilers.reversed) {
    if (compiler.backend == backend) return compiler;
  }
  return null;
}