context property

BuildContext? get context

返回全局material上下文

Implementation

BuildContext? get context => (_context?.mounted ?? false) ? _context : null;