1. Dart
2. dart:io
3. File
4. lengthSync abstract method

##### File class

1. Constructors
2. File
3. fromRawPath
4. fromUri
5. Properties
6. absolute
7. hashCode
8. isAbsolute
9. parent
10. path
11. runtimeType
12. uri
13. Methods
14. copy
15. copySync
16. create
17. createSync
18. delete
19. deleteSync
20. exists
21. existsSync
22. lastAccessed
23. lastAccessedSync
24. lastModified
25. lastModifiedSync
26. length
27. lengthSync
28. noSuchMethod
29. open
30. openRead
31. openSync
32. openWrite
33. readAsBytes
34. readAsBytesSync
35. readAsLines
36. readAsLinesSync
37. readAsString
38. readAsStringSync
39. rename
40. renameSync
41. resolveSymbolicLinks
42. resolveSymbolicLinksSync
43. setLastAccessed
44. setLastAccessedSync
45. setLastModified
46. setLastModifiedSync
47. stat
48. statSync
49. toString
50. watch
51. writeAsBytes
52. writeAsBytesSync
53. writeAsString
54. writeAsStringSync
55. Operators
56. operator ==

description

# lengthSync method Null safety

int lengthSync ()

Synchronously get the length of the file.

Throws a FileSystemException if the operation fails.

## Implementation

    int lengthSync();