pushReplacementWithTheme<T> static method

Future<T?> pushReplacementWithTheme<T>(
  1. BuildContext context,
  2. Widget page
)

Implementation

static Future<T?> pushReplacementWithTheme<T>(
    BuildContext context, Widget page) {
  return Navigator.of(context).pushReplacement(
    MaterialPageRoute(
      builder: (context) => Theme(
        data: FlutterPixPagstar.theme,
        child: page,
      ),
    ),
  );
}