create method

  1. @override
LineDrawable create(
  1. Offset position, [
  2. Paint? paint
])
override

Creates and returns a LineDrawable with length of 0 and the passed position and paint.

Implementation

@override
LineDrawable create(Offset position, [Paint? paint]) {
  return LineDrawable(length: 0, position: position, paint: paint);
}