ByteModel.createFromFile constructor

ByteModel.createFromFile(
  1. File file
)

Implementation

factory ByteModel.createFromFile(File file) {
  final len = file.lengthSync();
  return ByteModel.create(len.toDouble());
}