getTextures method
Gets a list of GTexture
s that match the given prefix
.
The prefix
parameter is used to filter the list of textures to be
returned by their name.
The out
parameter is an optional list that will be filled with the
matching textures. If it's not provided, a new list will be created.
Returns the list of matching GTexture
s.
Implementation
List<GTexture?> getTextures({String? prefix, List<GTexture?>? out}) {
prefix ??= '';
out ??= [];
final list = getNames(prefix: prefix);
for (var name in list) {
out.add(getTexture(name));
}
return out;
}