buildPreview method

Widget buildPreview({
  1. LoadingIndicatorProperties? properties,
  2. LoadingIndicatorNode? node,
  3. double? height,
  4. double? width,
  5. ValueChanged<bool>? onChanged,
  6. bool animate = false,
  7. WidgetBuildSettings settings = const WidgetBuildSettings(debugLabel: 'buildPreview'),
})

Implementation

Widget buildPreview({
  LoadingIndicatorProperties? properties,
  LoadingIndicatorNode? node,
  double? height,
  double? width,
  ValueChanged<bool>? onChanged,
  bool animate = false,
  WidgetBuildSettings settings = const WidgetBuildSettings(
    debugLabel: 'buildPreview',
  ),
}) {
  final previewNode = LoadingIndicatorNode(
    properties: node?.properties ?? properties!,
    id: '',
    name: 'LoadingIndicator',
    basicBoxLocal: NodeBox(0, 0, width ?? 32, height ?? 32),
    retainedOuterBoxLocal: NodeBox(0, 0, width ?? 32, height ?? 32),
  );
  return PassiveLoadingIndicatorWidget(
    node: previewNode,
    onChanged: onChanged,
    animate: animate,
    settings: settings,
  );
}