getExtenstion static method

  1. @visibleForTesting
String getExtenstion(
  1. SnapshotType type
)

Implementation

@visibleForTesting
static String getExtenstion(SnapshotType type) {
  if (type == SnapshotType.layer) {
    return 'layer';
  } else if (type == SnapshotType.render) {
    return 'render';
  } else if (type == SnapshotType.image) {
    return 'image';
  }
  return '';
}