mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-22 17:19:36 +02:00
8 lines
182 B
Dart
8 lines
182 B
Dart
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||
|
import 'package:provider/provider.dart';
|
||
|
|
||
|
T useProvider<T>() {
|
||
|
final context = useContext();
|
||
|
return Provider.of<T>(context);
|
||
|
}
|