call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FTappableStyle(...));

Implementation

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