#30 fix: context.pop()

This commit is contained in:
lollipopkit
2023-05-09 19:49:31 +08:00
parent 3f9f589178
commit b4f3fce64a
22 changed files with 130 additions and 111 deletions

View File

@@ -0,0 +1,7 @@
import 'package:flutter/material.dart';
extension ContextX on BuildContext {
void pop<T extends Object?>([T? result]) {
Navigator.of(this).pop<T>(result);
}
}