AspectRatioBox.video constructor

AspectRatioBox.video({
  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 16:9 aspect-ratio box.

Implementation

AspectRatioBox.video({
  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: '16 / 9',
        child: child,
        children: children,
        width: width,
        overflow: overflow,
        className: className,
        props: props,
        style: style,
        dartStyle: dartStyle,
      );