readFileSync method

  1. @override
String readFileSync(
  1. String fsPath, {
  2. String encoding = 'utf-8',
})
override

Reads file content as string with specified encoding.

Implementation

@override
String readFileSync(String fsPath, {String encoding = 'utf-8'}) {
  return File(fsPath).readAsStringSync();
}