isFileSync method

bool isFileSync(
  1. String path
)

Synchronously checks if type(path) returns io.FileSystemEntityType.FILE.

Implementation

bool isFileSync(String path) =>
    typeSync(path) == io.FileSystemEntityType.file;