Skip to content

Commit

Permalink
Update modifier handling
Browse files Browse the repository at this point in the history
  • Loading branch information
theEvilReaper committed Oct 3, 2023
1 parent 29c73de commit edf97d2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,24 @@ class PropertySpec(
type: ClassName,
vararg modifiers: DartModifier = emptyArray()
): PropertyBuilder {
return PropertyBuilder(name, type).modifiers { listOf(*modifiers) }
return PropertyBuilder(name, type).modifiers(*modifiers)
}

@JvmStatic
fun builder(
name: String,
type: TypeName,
vararg modifiers: DartModifier = emptyArray()
vararg modifiers: DartModifier
): PropertyBuilder {
return PropertyBuilder(name, type).modifiers { listOf(*modifiers) }
return PropertyBuilder(name, type).modifiers(*modifiers)
}

fun builder(
name: String,
type: KClass<*>,
vararg modifiers: DartModifier = emptyArray()
): PropertyBuilder {
return PropertyBuilder(name, type.asTypeName()).modifiers { listOf(*modifiers) }
return PropertyBuilder(name, type.asTypeName()).modifiers(*modifiers)
}

@JvmStatic
Expand Down

0 comments on commit edf97d2

Please sign in to comment.