merge static method
Creates an DrivenSpinnerTheme that controls the style of descendant widgets, and merges in the current DrivenSpinnerTheme, if any.
The style
and child
arguments must not be null.
Implementation
static Widget merge({
Key? key,
double? size,
Color? color,
Color? backgroundColor,
double? width,
double? offset,
bool? rounded,
DrivenSpinnerThemeData? data,
required Widget child,
}) {
return Builder(
builder: (BuildContext context) {
final parent = DrivenSpinnerTheme.of(context);
return DrivenSpinnerTheme(
key: key,
data: parent.merge(data).copyWith(
size: size,
color: color,
backgroundColor: backgroundColor,
width: width,
offset: offset,
rounded: rounded,
),
child: child,
);
},
);
}