@@ -60,7 +60,8 @@ class TreeNode extends StatefulWidget {
6060 State <TreeNode > createState () => _TreeNodeState ();
6161}
6262
63- class _TreeNodeState extends State <TreeNode > with SingleTickerProviderStateMixin {
63+ class _TreeNodeState extends State <TreeNode >
64+ with SingleTickerProviderStateMixin {
6465 bool _isExpanded = false ;
6566 bool ? _isChecked = false ;
6667 bool _showLoading = false ;
@@ -118,15 +119,18 @@ class _TreeNodeState extends State<TreeNode> with SingleTickerProviderStateMixin
118119 Widget build (BuildContext context) {
119120 if (widget.parentState != null ) _isChecked = widget.data.checked;
120121
121- bool hasData = widget.data.children.isNotEmpty || (widget.lazy && ! _isExpanded);
122+ bool hasData =
123+ widget.data.children.isNotEmpty || (widget.lazy && ! _isExpanded);
122124
123125 return Column (
124126 crossAxisAlignment: CrossAxisAlignment .start,
125127 children: < Widget > [
126128 InkWell (
127129 splashColor: widget.contentTappable ? null : Colors .transparent,
128130 highlightColor: widget.contentTappable ? null : Colors .transparent,
129- mouseCursor: widget.contentTappable ? SystemMouseCursors .click : MouseCursor .defer,
131+ mouseCursor: widget.contentTappable
132+ ? SystemMouseCursors .click
133+ : MouseCursor .defer,
130134 onTap: widget.contentTappable
131135 ? () {
132136 if (hasData) {
@@ -175,7 +179,8 @@ class _TreeNodeState extends State<TreeNode> with SingleTickerProviderStateMixin
175179 if (widget.parentState != null ) {
176180 _checkUncheckChildren (widget.data.children);
177181 _checkUncheckParent (widget.parent);
178- BlocProvider .of <TreeviewBloc >(context).add (UpdateTreeviewEvent ());
182+ BlocProvider .of <TreeviewBloc >(context)
183+ .add (UpdateTreeviewEvent ());
179184 }
180185 widget.onCheck (_isChecked, widget.data);
181186 setState (() {});
@@ -223,9 +228,11 @@ class _TreeNodeState extends State<TreeNode> with SingleTickerProviderStateMixin
223228 widget.remove (widget.data);
224229 widget.onRemove (widget.data, widget.parent);
225230 },
226- child: const Text ('Remove' , style: TextStyle (fontSize: 12.0 )),
231+ child:
232+ const Text ('Remove' , style: TextStyle (fontSize: 12.0 )),
227233 ),
228- if (widget.data.customActions? .isNotEmpty == true ) ...widget.data.customActions! ,
234+ if (widget.data.customActions? .isNotEmpty == true )
235+ ...widget.data.customActions! ,
229236 ],
230237 ),
231238 ),
0 commit comments