$declaration constant

BridgeFunctionDeclaration const $declaration

Implementation

static const $declaration = BridgeFunctionDeclaration(
  'package:flutter/src/material/bottom_sheet.dart',
  'showModalBottomSheet',
  BridgeFunctionDef(
    returns: BridgeTypeAnnotation(
      BridgeTypeRef(CoreTypes.future, [
        BridgeTypeAnnotation(BridgeTypeRef.ref('T'), nullable: true),
      ]),
    ),
    namedParams: [
      BridgeParameter(
        'context',
        BridgeTypeAnnotation(
          $BuildContext.$type,
        ),
        false,
      ),
      BridgeParameter(
        'builder',
        BridgeTypeAnnotation(
          BridgeTypeRef.genericFunction(
            BridgeFunctionDef(
              returns: BridgeTypeAnnotation(
                $Widget.$type,
              ),
              params: [
                BridgeParameter(
                  'context',
                  BridgeTypeAnnotation($BuildContext.$type),
                  false,
                ),
              ],
            ),
          ),
        ),
        false,
      ),
      BridgeParameter(
        'backgroundColor',
        BridgeTypeAnnotation(
          $Color.$type,
          nullable: true,
        ),
        true,
      ),
      BridgeParameter(
        'barrierLabel',
        BridgeTypeAnnotation(
          BridgeTypeRef(CoreTypes.string, []),
          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(
        'barrierColor',
        BridgeTypeAnnotation(
          $Color.$type,
          nullable: true,
        ),
        true,
      ),
      BridgeParameter(
        'isScrollControlled',
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
        true,
      ),
      BridgeParameter(
        'scrollControlDisabledMaxHeightRatio',
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.double, [])),
        true,
      ),
      BridgeParameter(
        'useRootNavigator',
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
        true,
      ),
      BridgeParameter(
        'isDismissible',
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
        true,
      ),
      BridgeParameter(
        'enableDrag',
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
        true,
      ),
      BridgeParameter(
        'showDragHandle',
        BridgeTypeAnnotation(
          BridgeTypeRef(CoreTypes.bool, []),
          nullable: true,
        ),
        true,
      ),
      BridgeParameter(
        'useSafeArea',
        BridgeTypeAnnotation(BridgeTypeRef(CoreTypes.bool, [])),
        true,
      ),
      BridgeParameter(
        'routeSettings',
        BridgeTypeAnnotation(
          $RouteSettings.$type,
          nullable: true,
        ),
        true,
      ),
      BridgeParameter(
        'transitionAnimationController',
        BridgeTypeAnnotation(
          $AnimationController.$type,
          nullable: true,
        ),
        true,
      ),
      BridgeParameter(
        'anchorPoint',
        BridgeTypeAnnotation(
          $Offset.$type,
          nullable: true,
        ),
        true,
      ),
      BridgeParameter(
        'requestFocus',
        BridgeTypeAnnotation(
          BridgeTypeRef(CoreTypes.bool, []),
          nullable: true,
        ),
        true,
      ),
    ],
  ),
);