ComplicationReceiver constructor

ComplicationReceiver({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext,
    2. List<Complication>
    ),
  3. required List<List<ComplicationType>> supportedTypeList,
  4. dynamic onBeforeChange(
    1. List<Complication>,
    2. List<Complication>
    )?,
  5. dynamic onAfterChange(
    1. List<Complication>,
    2. List<Complication>
    )?,
  6. Widget? loading,
})

Implementation

ComplicationReceiver({super.key,
  required this.builder,
  required List<List<ComplicationType>> supportedTypeList,
  this.onBeforeChange,
  this.onAfterChange,
  this.loading}) {
  this.supportedTypeList =
      supportedTypeList.map((supportedTypes) => supportedTypes.map((element) => element.value).toList()).toList();
}