call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FButtonContentStyle(...));

Implementation

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