FileReadResult constructor

FileReadResult({
  1. required Map<String, String>? map,
  2. required bool isSuccess,
  3. required String? errorMessage,
})

Creates an instance of FileReadResult.

map is the map content of the file. isSuccess is true if reading the file was successful. errorMessage contains the error message if any; empty if successful.

Implementation

FileReadResult({
  required this.map,
  required this.isSuccess,
  required this.errorMessage,
});