cursor method

NikuTextField cursor({
  1. double width = 2,
  2. double? height,
  3. Radius? radius,
  4. Color? color,
})

Set property of cursor at once

Equivalent to

TextFormField(
  cursorWidth: width,
  cursorHeight: height,
  cursorRadius: radius,
  cursorColor: color
)

Implementation

NikuTextField cursor(
    {double width = 2, double? height, Radius? radius, Color? color}) {
  this._cursorWidth = width;
  this._cursorHeight = height ?? this._cursorHeight;
  this._cursorRadius = radius ?? this._cursorRadius;
  this._cursorColor = color ?? this._cursorColor;

  return this;
}