buildPreview method
Widget
buildPreview({
- LoadingIndicatorProperties? properties,
- LoadingIndicatorNode? node,
- double? height,
- double? width,
- ValueChanged<
bool> ? onChanged, - bool animate = false,
- 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,
);
}