buildDelegate method

ActionLayoutDelegate buildDelegate(
  1. ActionPosition position, {
  2. ActionController? controller,
})

Implementation

ActionLayoutDelegate buildDelegate(
  ActionPosition position, {
  ActionController? controller,
}) {
  switch (alignment) {
    case ActionAlignment.spaceEvenly:
      return _SpaceEvenlyLayoutDelegate(
        motion: motion,
        position: position,
        controller: controller,
      );
    case ActionAlignment.flex:
      return _FlexLayoutDelegate(
        motion: motion,
        position: position,
        controller: controller,
      );
  }
}