Spacer constructor

Spacer({
  1. int? flex,
  2. double? width,
  3. double? height,
  4. String? name,
  5. Object? visible,
})

Implementation

Spacer({this.flex, this.width, this.height, String? name, Object? visible})
  : assert(
      flex == null || (width == null && height == null),
      'Spacer cannot mix flex with fixed width/height.',
    ),
    super(name: name, visible: _normalizeVisibility(visible));