pop<T> static method
pop screen with result
Implementation
static void pop<T>(BuildContext context, {T? result}) {
if (result == null) {
Navigator.of(context).pop();
} else {
Navigator.of(context).pop(result);
}
}