getAbsolutePath method

  1. @override
String getAbsolutePath({
  1. String key = '',
  2. String? dirName,
  3. String? fileName,
})
override

Get a unique absolute normalized path.

Implementation

@override
String getAbsolutePath({String key = '', String? dirName, String? fileName}) {
  final normalized =
      super.getAbsolutePath(key: key, dirName: dirName, fileName: fileName);
  if (Platform.isWindows && normalized.startsWith('/')) {
    return normalized.substring(1);
  } else {
    return normalized;
  }
}