BoxyId<T extends Object> constructor

const BoxyId<T extends Object>({
  1. Object? id,
  2. Key? key,
  3. bool? hasData,
  4. T? data,
  5. required Widget child,
  6. bool alwaysRelayout = true,
  7. bool alwaysRepaint = true,
})

Constructs a BoxyData with an optional id, data, and child.

Implementation

const BoxyId({
  this.id,
  super.key,
  bool? hasData,
  T? data,
  required super.child,
  bool alwaysRelayout = true,
  bool alwaysRepaint = true,
})  : hasData = hasData ?? data != null,
      _data = data,
      _alwaysRelayout = alwaysRelayout,
      _alwaysRepaint = alwaysRepaint;