setBackgroundColor method

Future<void> setBackgroundColor(
  1. Color color
)

Sets the background color of the refresh control.

Implementation

Future<void> setBackgroundColor(Color color) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('color', () => color.toHex());
  await _channel?.invokeMethod('setBackgroundColor', args);
}