call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FTooltipStyle(...));

Implementation

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