toWidget method

  1. @override
RefreshIndicator toWidget(
  1. AnyWidgetContext context
)
override

Implementation

@override
RefreshIndicator toWidget(AnyWidgetContext context) {
  return RefreshIndicator(
    key: key?.toFlutter(context),
    child: child.toWidget(context),
    onRefresh: () => onRefresh.execute(context, const ActionPayload.none()),
    displacement: displacement ?? 40.0,
    edgeOffset: edgeOffset ?? 0.0,
    color: color?.toFlutter(context),
    backgroundColor: backgroundColor?.toFlutter(context),
    semanticsLabel: semanticsLabel,
    semanticsValue: semanticsValue,
    triggerMode:
        triggerMode?.toFlutter(context) ?? RefreshIndicatorTriggerMode.onEdge,
  );
}