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,
}) {
  _cursorWidth = width;
  _cursorHeight = height ?? _cursorHeight;
  _cursorRadius = radius ?? _cursorRadius;
  _cursorColor = color ?? _cursorColor;

  return this;
}