discontinuedPackage opencv_core has been discontinued and replaced by dartcv4.

width property

int get width

Implementation

int get width => cols;