call method

  1. @useResult
FSliderThumbStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FSliderThumbStyle to replace functions that accept and return a FSliderThumbStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FSliderThumbStyle Function(FSliderThumbStyle) nestedStyle) {}

The following:

copyWith((style) => FSliderThumbStyle(...));

Can be replaced with:

copyWith(FSliderThumbStyle(...));

Implementation

@useResult
FSliderThumbStyle call(Object? _) => this as FSliderThumbStyle;