buildByMaterial method
build on material mode
Implementation
@override
Widget buildByMaterial(BuildContext context) {
Widget _child = valueOf('child', child);
assert(_child != null, 'child can\'t be null.');
if (_child is SliverList) {
// SliverList => ListView
_child = ListView.custom(
childrenDelegate: _child.delegate,
);
}
return RefreshIndicator(
child: _child,
displacement: valueOf('displacement', displacement),
edgeOffset: valueOf('edgeOffset', edgeOffset),
onRefresh: valueOf('onRefresh', onRefresh),
color: valueOf('color', color),
backgroundColor: valueOf('backgroundColor', backgroundColor),
notificationPredicate: valueOf('notificationPredicate', notificationPredicate),
semanticsLabel: valueOf('semanticsLabel', semanticsLabel),
semanticsValue: valueOf('semanticsValue', semanticsValue),
strokeWidth: valueOf('strokeWidth', strokeWidth),
triggerMode: valueOf('triggerMode', triggerMode),
);
}