width top-level property

dynamic get width

此方法用於獲取設備視口寬度。

Implementation

get width {
  if (size.height == 0) {
    size = const Size(380, 780);
  }
  return size.width;
}