FFPageViewAction constructor

FFPageViewAction({
  1. FFPageViewAction_ActionType? type,
  2. @Deprecated('This field is deprecated.') String? legacyPageViewKey,
  3. FFValue? jumpToIndex,
  4. FFNodeKeyReference? pageViewNodeKeyRef,
})

Implementation

factory FFPageViewAction({
  FFPageViewAction_ActionType? type,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyPageViewKey,
  FFValue? jumpToIndex,
  FFNodeKeyReference? pageViewNodeKeyRef,
}) {
  final result = create();
  if (type != null) result.type = type;
  if (legacyPageViewKey != null) result.legacyPageViewKey = legacyPageViewKey;
  if (jumpToIndex != null) result.jumpToIndex = jumpToIndex;
  if (pageViewNodeKeyRef != null)
    result.pageViewNodeKeyRef = pageViewNodeKeyRef;
  return result;
}