call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FSwitchStyle(...));

Implementation

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