$declaration constant

BridgeClassDef const $declaration

dart_eval bridge declaration for DragStartDetails

Implementation

static const $declaration = BridgeClassDef(
    BridgeClassType($type, isAbstract: false),
    constructors: {
      '': BridgeConstructorDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($type),
          namedParams: [
            BridgeParameter('sourceTimeStamp',
                BridgeTypeAnnotation($Duration.$type, nullable: true), true),
            BridgeParameter(
                'globalPosition', BridgeTypeAnnotation($Offset.$type), false),
            BridgeParameter('localPosition',
                BridgeTypeAnnotation($Offset.$type, nullable: true), true),
            BridgeParameter(
                'kind',
                BridgeTypeAnnotation($PointerDeviceKind.$type,
                    nullable: true),
                true),
          ]))
    },
    getters: {
      'globalPosition': BridgeMethodDef(
          BridgeFunctionDef(returns: BridgeTypeAnnotation($Offset.$type))),
      'localPosition': BridgeMethodDef(
          BridgeFunctionDef(returns: BridgeTypeAnnotation($Offset.$type))),
      'sourceTimeStamp': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($Duration.$type, nullable: true))),
      'kind': BridgeMethodDef(BridgeFunctionDef(
          returns: BridgeTypeAnnotation($PointerDeviceKind.$type,
              nullable: true))),
    },
    wrap: true);