fileToBytes function

List<int> fileToBytes(
  1. dynamic data
)

Implementation

List<int> fileToBytes(dynamic data) {
  if (data is List<int>) {
    return data;
  } else {
    throw FormatException('File is not "File" or "String" or "List<int>"');
  }
}