call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FBadgeStyles(...));

Implementation

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