$declaration constant

BridgeClassDef const $declaration

Compile-time class declaration of $BottomSheet

Implementation

static const $declaration = BridgeClassDef(
  BridgeClassType(
    $type,
    $extends: $StatefulWidget$bridge.$type,
  ),
  constructors: {
    '': BridgeConstructorDef(
      BridgeFunctionDef(
        returns: BridgeTypeAnnotation($type),
        namedParams: [
          BridgeParameter(
            'key',
            BridgeTypeAnnotation(
              $Key.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'animationController',
            BridgeTypeAnnotation(
              $AnimationController.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'enableDrag',
            BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
            true,
          ),
          BridgeParameter(
            'showDragHandle',
            BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.bool, []),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'dragHandleColor',
            BridgeTypeAnnotation(
              $Color.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'dragHandleSize',
            BridgeTypeAnnotation(
              $Size.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'onDragStart',
            BridgeTypeAnnotation(
              BridgeTypeRef.genericFunction(
                BridgeFunctionDef(
                  returns: BridgeTypeAnnotation(
                    BridgeTypeRef(CoreTypes.voidType),
                  ),
                  params: [
                    BridgeParameter(
                      'details',
                      BridgeTypeAnnotation($DragStartDetails.$type),
                      false,
                    ),
                  ],
                  namedParams: [],
                ),
              ),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'onDragEnd',
            BridgeTypeAnnotation(
              BridgeTypeRef.genericFunction(
                BridgeFunctionDef(
                  returns: BridgeTypeAnnotation(
                    BridgeTypeRef(CoreTypes.voidType),
                  ),
                  params: [
                    BridgeParameter(
                      'details',
                      BridgeTypeAnnotation($DragEndDetails.$type),
                      false,
                    ),
                  ],
                  namedParams: [
                    BridgeParameter(
                      'isClosing',
                      BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
                      false,
                    ),
                  ],
                ),
              ),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'backgroundColor',
            BridgeTypeAnnotation(
              $Color.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'shadowColor',
            BridgeTypeAnnotation(
              $Color.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'elevation',
            BridgeTypeAnnotation(
              BridgeTypeRef(CoreTypes.double, []),
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'shape',
            BridgeTypeAnnotation(
              $ShapeBorder.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'clipBehavior',
            BridgeTypeAnnotation(
              $Clip.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'constraints',
            BridgeTypeAnnotation(
              $BoxConstraints.$type,
              nullable: true,
            ),
            true,
          ),
          BridgeParameter(
            'onClosing',
            BridgeTypeAnnotation(
              BridgeTypeRef.genericFunction(
                BridgeFunctionDef(
                  returns: BridgeTypeAnnotation(
                    BridgeTypeRef(CoreTypes.voidType),
                  ),
                  params: [],
                  namedParams: [],
                ),
              ),
            ),
            false,
          ),
          BridgeParameter(
            'builder',
            BridgeTypeAnnotation(
              BridgeTypeRef.genericFunction(
                BridgeFunctionDef(
                  returns: BridgeTypeAnnotation($Widget.$type),
                  params: [
                    BridgeParameter(
                      'context',
                      BridgeTypeAnnotation($BuildContext.$type),
                      false,
                    ),
                  ],
                  namedParams: [],
                ),
              ),
            ),
            false,
          ),
        ],
        params: [],
      ),
      isFactory: false,
    ),
  },
  wrap: true,
);