floatingActionButton method
- BuildContext context
override
/adding a new DataT
, if this is not null the DropDown will create a new floatingactionbutton
for adding new DataT
to this level (or other additional functionality)
Implementation
@override
Widget? floatingActionButton(BuildContext context) {
return PopUpActionbutton(
expandedChild: (onCancel) => adder(
parent: currentData,
onCancel: onCancel,
onDone: (category) async {
await API().setNew(category, caller: currentData);
notifyListeners();
},
),
);
}