AspectRatioBox.square constructor

AspectRatioBox.square({
  1. Object? child,
  2. List<Object?> children = const [],
  3. Object? width,
  4. Object? overflow,
  5. String? className,
  6. Map<String, Object?> props = const {},
  7. Map<String, Object?> style = const {},
  8. DartStyle? dartStyle,
})

Creates a square aspect-ratio box.

Implementation

AspectRatioBox.square({
  Object? child,
  List<Object?> children = const [],
  Object? width,
  Object? overflow,
  String? className,
  Map<String, Object?> props = const {},
  Map<String, Object?> style = const {},
  DartStyle? dartStyle,
}) : this(
       ratio: '1 / 1',
       child: child,
       children: children,
       width: width,
       overflow: overflow,
       className: className,
       props: props,
       style: style,
       dartStyle: dartStyle,
     );