Skip to content

Commit

Permalink
Hide uuid variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgenware committed Aug 19, 2024
1 parent 493e20e commit e30e999
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/src/tmp_path.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:uuid/uuid.dart';

var uuid = Uuid();
final _uuid = Uuid();

/// Returns a temporary file name.
String tmpFileName() {
return '${uuid.v4().replaceAll('-', '')}${DateTime.now().millisecondsSinceEpoch}';
return '${_uuid.v4().replaceAll('-', '')}${DateTime.now().millisecondsSinceEpoch}';
}

/// Returns a temporary path. You can use that to create a temporary file or directory.
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: tmp_path
description: Generate a unique path in system temp directory.
version: 1.3.1
version: 1.3.2
homepage: https://github.com/flutter-cavalry/tmp_path

environment:
sdk: ">=2.18.2 <4.0.0"

dev_dependencies:
mgenware_dart_lints: ^5.0.0
mgenware_dart_lints: ^6.5.2
test: ^1.16.0
dependencies:
path: ^1.8.2
Expand Down

0 comments on commit e30e999

Please sign in to comment.