createTemp method

Future<Directory> createTemp (
  1. [String? prefix]
)

Creates a temporary directory in this directory.

Additional random characters are appended to prefix to produce a unique directory name. If prefix is missing or null, the empty string is used as prefix.

Returns a Future<Directory> that completes with the newly created temporary directory.

Implementation

Future<Directory> createTemp([String? prefix]);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/Directory/createTemp.html