toNamed<T> function

Future<T?>? toNamed<T>(
  1. String page, {
  2. dynamic arguments,
  3. int? id,
  4. bool preventDuplicates = true,
  5. Map<String, String>? parameters,
})

导航到新的页面

Implementation

Future<T?>? toNamed<T>(
  String page, {
  dynamic arguments,
  int? id,
  bool preventDuplicates = true,
  Map<String, String>? parameters,
}) {
  return Get.toNamed<T>(page,
      arguments: arguments,
      id: id,
      preventDuplicates: preventDuplicates,
      parameters: parameters);
}