MenuPositionAndSizeBuilder typedef
MenuPositionAndSizeBuilder =
MenuPositionAndSize Function(MenuPositionAndSizeComponentData data)
This typedef defines a method that returns a MenuPositionAndSize that is used to place the menu on the screen.
Used by MenuPositionAndSizeComponent as MenuPositionAndSizeComponent.builder.
Example
MenuPositionAndSizeComponent(
builder: (MenuPositionAndSizeComponentData data)
{
return MenuPositionAndSize(
positionOffset: Offset(0.0,data.buttonPositionAndSize.size.height),
constraints: data.constraints,
);
}
);
See Also:
Implementation
typedef MenuPositionAndSizeBuilder = MenuPositionAndSize Function(
MenuPositionAndSizeComponentData data);