getNewFileName method Null safety

  1. @visibleForTesting
String getNewFileName(
  1. String id,
  2. SnapshotType type
)

Implementation

@visibleForTesting
static String getNewFileName(String id, SnapshotType type) {
  final ext = getExtenstion(type);
  return '$id-new.$ext';
}