push<T extends Object?> method

  1. @optionalTypeArgs
Future<T?> push<T extends Object?>(
  1. Widget builder(
    1. BuildContext
    )
)

Implementation

@optionalTypeArgs
Future<T?> push<T extends Object?>(Widget Function(BuildContext) builder) {
  if (context == null) {
    print("Cant start Alice HTTP Inspector. Please add NavigatorKey");
    return Future.value(null);
  }
  return Navigator.push(context!, MaterialPageRoute(builder: builder));
}