showCLicensePage function
void
showCLicensePage({
- required BuildContext context,
- Cancellable? cancellable,
- String? applicationName,
- String? applicationVersion,
- Widget? applicationIcon,
- String? applicationLegalese,
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);
}