无法无条件访问属性“设置”,因为接收器可以为“空”,该怎么办我的代码:`import 'package:flutter/material.dart';
class DressDetailsScreen extends StatelessWidget {
static const routeName = '/DressDetailsScreen';
@override
Widget build(BuildContext context) {
final routeArgs = ModalRoute.of(context).settings.arguments ;
return Scaffold(
appBar: AppBar(
title: Text('details'),
),
);
}
}`
Run Code Online (Sandbox Code Playgroud)