call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FAlertStyle(...));

Implementation

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