newPath method
A new unique path inside the session with extension (no dot).
Implementation
String newPath(String extension, {String prefix = 'file'}) {
_counter++;
return '${directory.path}/${prefix}_${_counter}_'
'${DateTime.now().microsecondsSinceEpoch}.$extension';
}