Skip to content

Commit

Permalink
Make InitialArguments value be dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
raapperez committed Sep 4, 2024
1 parent b70ea30 commit 2cbfcb8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/src/nuvigator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class _NuvigatorInner<T extends INuRouter> extends Navigator {
_NuvigatorInner({
required this.router,
required String initialDeepLink,
Map<String, Object>? initialArguments,
Map<String, dynamic>? initialArguments,
Key? key,
List<NavigatorObserver> observers = const [],
this.screenType = materialScreenType,
Expand Down Expand Up @@ -547,7 +547,7 @@ class Nuvigator<T extends INuRouter?> extends StatelessWidget {
final List<ObserverBuilder> inheritableObservers;
final List<NavigatorObserver> observers;
final Key? _innerKey;
final Map<String, Object>? initialArguments;
final Map<String, dynamic>? initialArguments;
final ShouldRebuildFn? shouldRebuild;

/// Maybe fetches a [NuvigatorState] from the current BuildContext.
Expand All @@ -569,9 +569,9 @@ class Nuvigator<T extends INuRouter?> extends StatelessWidget {
/// Fetches a [NuvigatorState] from the current BuildContext, or throws an
/// error if doesn't find it
static NuvigatorState<T> of<T extends INuRouter>(
BuildContext context, {
bool rootNuvigator = false,
}) {
BuildContext context, {
bool rootNuvigator = false,
}) {
return Nuvigator.maybeOf(context, rootNuvigator: rootNuvigator)!;
}

Expand Down

0 comments on commit 2cbfcb8

Please sign in to comment.