FragNavigate.restart constructor

FragNavigate.restart({
  1. required dynamic firstKey,
  2. required List<Posit> screens,
  3. BuildContext? drawerContext,
  4. List<BottomPosit>? bottomList,
  5. List<ActionPosit>? actionsList,
  6. List<FloatingPosit>? floatingPosit,
  7. dynamic onBack(
    1. dynamic oldKey,
    2. dynamic newKey
    )?,
  8. dynamic onPut(
    1. dynamic oldKey,
    2. dynamic newKey
    )?,
})

Implementation

factory FragNavigate.restart(
    {required dynamic firstKey,
    required List<Posit> screens,
    BuildContext? drawerContext,
    List<BottomPosit>? bottomList,
    List<ActionPosit>? actionsList,
    List<FloatingPosit>? floatingPosit,
    Function(dynamic oldKey, dynamic newKey)? onBack,
    Function(dynamic oldKey, dynamic newKey)? onPut}) {
  _instance = FragNavigate._internal(
      onPut: onPut,
      onBack: onBack,
      screens: screens,
      firstKey: firstKey,
      bottomList: bottomList,
      actionsList: actionsList,
      floatingList: floatingPosit,
      drawerContext: drawerContext);

  return _instance!;
}