popIfTrue static method

void popIfTrue(
  1. BuildContext context,
  2. bool result
)

Implementation

static void popIfTrue(BuildContext context, bool result) => result ? Navigator.of(context).pop(result) : null;