mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 07:50:42 +00:00
8 lines
174 B
Dart
8 lines
174 B
Dart
|
import 'package:flutter/widgets.dart';
|
||
|
|
||
|
extension ModalRouteArgsParser on BuildContext {
|
||
|
T routeArgs<T>() {
|
||
|
return ModalRoute.of(this)!.settings.arguments! as T;
|
||
|
}
|
||
|
}
|