of static method

SunnyRouter of(
  1. BuildContext context, {
  2. bool listen = false,
})

Implementation

static SunnyRouter of(BuildContext context, {bool listen = false}) {
  return Provider.of<SunnyRouter>(context, listen: listen);
}