The instance member 'params' can't be accessed in an initializer
问题 class LevelUp extends GetxController { Map<String, String> params = Get.arguments; var myTest = params.[comLevel]; } Error report--"The instance member 'params' can't be accessed in an initializer." I am new to programming and this is being called directly from a widget. I checked the LevelUp map and it has contents. The error occurs where I am trying to assign the param value to myTest. It doesn't matter if I put the key in quotes or provide an integer. Any advice would be greatly