i want to assign value of defulttitle into the text but its showing some error..
final foldertitle =
TextEditingController(text: folderbox.isEmpty ? defulttitle : folderbox.get(1));
class Addnotes extends StatefulWidget {
const Addnotes(
{super.key,
this.defulttitle = "My passwords.."});
final String defulttitle;
@override
State<Addnotes> createState() => _AddnotesState();
}
class _AddnotesState extends State<Addnotes> {
BuildContext? myContext;
final foldertitle =
TextEditingController(text: folderbox.isEmpty ? defulttitle : folderbox.get(1)); //here i cant assign the value of defulttitle into the text..can anyone explain?thank you..
why i cant assign the value of defulttitle into the text..can anyone explain?thank you