width property

double width

Returns the width of drawer.

Implementation

double get width {
  final RenderBox? box = _drawerKey.currentContext?.findRenderObject() as RenderBox?;
  if (box != null) return box.size.width;
  return _kWidth; // drawer not being shown currently
}