showCLicensePage function

void showCLicensePage({
  1. required BuildContext context,
  2. Cancellable? cancellable,
  3. String? applicationName,
  4. String? applicationVersion,
  5. Widget? applicationIcon,
  6. String? applicationLegalese,
  7. bool useRootNavigator = false,
})

Implementation

void showCLicensePage({
  required BuildContext context,
  Cancellable? cancellable,
  String? applicationName,
  String? applicationVersion,
  Widget? applicationIcon,
  String? applicationLegalese,
  bool useRootNavigator = false,
}) {
  final NavigatorState navigator =
      Navigator.of(context, rootNavigator: useRootNavigator);
  final route = MaterialPageRoute<void>(
    builder: (BuildContext context) => LicensePage(
      applicationName: applicationName,
      applicationVersion: applicationVersion,
      applicationIcon: applicationIcon,
      applicationLegalese: applicationLegalese,
    ),
  );
  navigator.pushCancellableRoute(route, cancellable);
}