CodeInputBuilders class Null safety

An abstract class that provides some commonly-used builders for the character widgets.

  • containerized: A builder putting chars in an animated container.
  • circle: A builder putting chars in circles.
  • rectangle: A builder putting chars in rectangles.
  • lightCircle: A builder putting chars in light circles.
  • darkCircle: A builder putting chars in dark circles.
  • lightRectangle: A builder putting chars in light rectangles.
  • darkRectangle: A builder putting chars in dark rectangles.

Constructors

CodeInputBuilders()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

circle({double totalRadius = 30.0, double emptyRadius = 10.0, double filledRadius = 25.0, required Border border, required Color color, required TextStyle textStyle}) CodeInputBuilder
Builds the input inside a circle.
containerized({Duration animationDuration = const Duration(milliseconds: 50), required Size totalSize, required Size emptySize, required Size filledSize, required BoxDecoration emptyDecoration, required BoxDecoration filledDecoration, required TextStyle emptyTextStyle, required TextStyle filledTextStyle}) CodeInputBuilder
Builds the input inside an animated container.
darkCircle({double totalRadius = 30.0, double emptyRadius = 10.0, double filledRadius = 25.0}) CodeInputBuilder
Builds the input inside a light circle.
darkRectangle({Size totalSize = const Size(50.0, 60.0), Size emptySize = const Size(20.0, 20.0), Size filledSize = const Size(40.0, 60.0), BorderRadius borderRadius = BorderRadius.zero}) CodeInputBuilder
Builds the input inside a dark rectangle.
lightCircle({double totalRadius = 30.0, double emptyRadius = 10.0, double filledRadius = 25.0}) CodeInputBuilder
Builds the input inside a light circle.
lightRectangle({Size totalSize = const Size(50.0, 60.0), Size emptySize = const Size(20.0, 20.0), Size filledSize = const Size(40.0, 60.0), BorderRadius borderRadius = BorderRadius.zero}) CodeInputBuilder
Builds the input inside a light rectangle.
rectangle({Size totalSize = const Size(50.0, 60.0), Size emptySize = const Size(20.0, 20.0), Size filledSize = const Size(40.0, 60.0), BorderRadius borderRadius = BorderRadius.zero, required Border border, required Color color, required TextStyle textStyle}) CodeInputBuilder
Builds the input inside a rectangle.