Skip to content

Commit e30e999

Browse files
committed
Hide uuid variable
1 parent 493e20e commit e30e999

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/src/tmp_path.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import 'dart:io';
22
import 'package:path/path.dart' as p;
33
import 'package:uuid/uuid.dart';
44

5-
var uuid = Uuid();
5+
final _uuid = Uuid();
66

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

1212
/// Returns a temporary path. You can use that to create a temporary file or directory.

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: tmp_path
22
description: Generate a unique path in system temp directory.
3-
version: 1.3.1
3+
version: 1.3.2
44
homepage: https://github.com/flutter-cavalry/tmp_path
55

66
environment:
77
sdk: ">=2.18.2 <4.0.0"
88

99
dev_dependencies:
10-
mgenware_dart_lints: ^5.0.0
10+
mgenware_dart_lints: ^6.5.2
1111
test: ^1.16.0
1212
dependencies:
1313
path: ^1.8.2

0 commit comments

Comments
 (0)