call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FButtonStyle(...));

Implementation

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