getType static method

String? getType(
  1. dynamic texture
)

Implementation

static String? getType(dynamic texture) {
  if (texture is ui.Image) {
    return "image";
  } else if (texture is Atlas) {
    return "atlas";
  } else if (texture is SpriteSheet) {
    return "spritesheet";
  } else if (texture == null) {
    return null;
  }

  return "image";
}