LAnimatedBox constructor

const LAnimatedBox(
  1. {Key key,
  2. Duration duration = const Duration(milliseconds: 150),
  3. Curve cureve = Curves.linear,
  4. LBoxDimension height = const LBoxDimension(),
  5. LBoxDimension width = const LBoxDimension(),
  6. LBoxVisibility visibility = const LBoxVisibility(),
  7. LBoxEdgeInsets padding = const LBoxEdgeInsets(),
  8. LBoxEdgeInsets margin = const LBoxEdgeInsets(),
  9. LBoxAlignment alignment = const LBoxAlignment(),
  10. LBoxDecoration decoration = const LBoxDecoration(),
  11. bool useMediaQuery = true,
  12. @required Widget child}
)

Creates a LBox that animates its parameters implicitly. The curve and duration arguments must not be null.

Implementation

const LAnimatedBox({
  Key key,
  this.duration = const Duration(milliseconds: 150),
  this.cureve = Curves.linear,
  LBoxDimension height = const LBoxDimension(),
  LBoxDimension width = const LBoxDimension(),
  LBoxVisibility visibility = const LBoxVisibility(),
  LBoxEdgeInsets padding = const LBoxEdgeInsets(),
  LBoxEdgeInsets margin = const LBoxEdgeInsets(),
  LBoxAlignment alignment = const LBoxAlignment(),
  LBoxDecoration decoration = const LBoxDecoration(),
  bool useMediaQuery = true,
  @required Widget child,
})  : assert(duration != null),
      assert(cureve != null),
      super(
        key: key,
        height: height,
        width: width,
        visibility: visibility,
        padding: padding,
        margin: margin,
        alignment: alignment,
        decoration: decoration,
        useMediaQuery: useMediaQuery,
        child: child,
      );