addTexture method

void addTexture(
  1. String name,
  2. dynamic texture
)

Implementation

void addTexture(String name, texture) {
  textures.addAll({name: texture});
}